Task: Program Execution
Input (English): y, 9189, 7821, 6901, 5247, L, 6523, 4035, 7201, N, 8543, 9087, 2987, Q, L, 7809, f, R
Output (English): 1, 6, 10, 14, 15, 17, 18