Task: Program Execution
Input (English): 9817, G, 4627, r, x, 1497, J, 4831, Q, 1815, 5523, g
Output (English): G, r, x, J, Q, g, 9817, 4627, 1497, 4831, 1815, 5523