Task: Program Execution
Input (English): x, Q, 8187, 1349, 8153, A, x, m, 1213, i, P, 9585
Output (English): 1, 2, 6, 7, 8, 10, 11