Task: Program Execution
Input (English): r, u, 6207, n, Q
Output (English): 1, 2, 4, 5