Task: Program Execution
Input (English): 4857, R, n, r, 5911, y, 9607, Q, 3847
Output (English): 1, 5, 7, 9