Task: Program Execution
Input (English): 9743, 8117, z, 7929, 9587, 57, k, q, M, X, f
Output (English): z, k, q, M, X, f, 9743, 8117, 7929, 9587, 57