Task: Program Execution
Input (English): x, M, 4853, O, 1845, 211, 8177, s, N, 9745, O, I, 3171, 2351, P, 3035, I, Y, s, 7479, 4337, M, 9751
Output (English): 1, 2, 4, 8, 9, 11, 12, 15, 17, 18, 19, 22