Task: Program Execution
Input (English): 7981, f, g, Z, B, 7637, P, 4549, X, B, 3503, f, 3461, 8995, W, 2519
Output (English): 1, 6, 8, 11, 13, 14, 16