Task: Program Execution
Input (English): Q, 6125, F, 4207, 565, 9705, 9125, n, P, S, j, J, 1863, 8657
Output (English): Q, F, n, P, S, j, J