Task: Program Execution
Input (English): o, D, 1907, 9489, E, d, 3021, 4071, 3655, 7781, 3417, Q, a, 143, 2605, 4807, a, Q, E, N, Y, 3341, M
Output (English): 1, 2, 5, 6, 12, 13, 17, 18, 19, 20, 21, 23