Task: Program Execution
Input (English): R, 5499, L, 3213, 2325, d, 8725, E, D, 9801, 6833, h, Y, Q, 4917, Z, x, y, 7115, J, N, p, v, 361
Output (English): 1, 3, 6, 8, 9, 12, 13, 14, 16, 17, 18, 20, 21, 22, 23