Task: Program Execution
Input (English): r, 5585, 1087, 9553, r, 6353, r, 7875, X, N, G, 9651, I, 1845, K, 7601, x, I, G, S, 8581, 839
Output (English): 2, 3, 4, 6, 8, 12, 14, 16, 21, 22