Task: Program Execution
Input (English): 2377, S, 8643, 2545, Z, G, 53, 8227, 7789, 5431, 7481, Z, P, 2745, 1477, 601, P, i
Output (English): 2, 5, 6, 12, 13, 17, 18