Task: Program Execution
Input (English): R, M, 689, 8141, y, Y, D, 4641, y, 1807, G, 5531, N, j, 2715, 4223, 9389, 4959
Output (English): 3, 4, 8, 10, 12, 15, 16, 17, 18