Task: Program Execution
Input (English): 1049, 4995, 6305, 7527, 8683, J, d, 8623, m, 4181, Q, s, 2421, O
Output (English): J, d, m, Q, s, O, 1049, 4995, 6305, 7527, 8683, 8623, 4181, 2421