Task: Program Execution
Input (English): 4847, 1167, y, M, R, 4167, 8411, Q, 1285, 6531
Output (English): 1, 2, 6, 7, 9, 10