Task: Program Execution
Input (English): x, Q, 8717, x, M, 7477, d, 2505, f, f, 1255, O, G, 4699, 7237, g, i, 407
Output (English): 1, 2, 4, 5, 7, 9, 10, 12, 13, 16, 17