Task: Program Execution
Input (English): P, 7931, 9527, 9279, j, 2017, 907, I, M, q
Output (English): 1, 5, 8, 9, 10