Task: Program Execution
Input (English): G, 7885, Q, 5831, q
Output (English): G, Q, q, 7885, 5831