Task: Program Execution
Input (English): W, 5805, g, J, 4009, L
Output (English): W, g, J, L, 5805, 4009