Task: Program Execution
Input (English): z, 4889, 4913, 3005, R, 3975, 4887, 3655, 933, Q, E, P, Q, d
Output (English): 2, 3, 4, 6, 7, 8, 9