Task: Program Execution
Input (English): Q, 9687, 4513, Y, 6365, c, 7653, 5911, g
Output (English): Q, Y, c, g, 9687, 4513, 6365, 7653, 5911