Task: Program Execution
Input (English): 6215, Z, x, 4917, 4351, 7669, 227, Q, 6685, S
Output (English): Z, x, Q, S, 6215, 4917, 4351, 7669, 227, 6685