Task: Program Execution
Input (English): 5403, 4929, y, 851, 11, 8213, p, f, u, p, 6587, 3677, 8013, 3189, t, e, 8349, 2957, Q
Output (English): 1, 2, 4, 5, 6, 11, 12, 13, 14, 17, 18