Task: Program Execution
Input (English): z, 1229, w, 813, x, 2443, 9869, 8217, 7943, g, S, 111, u, T, d, z, Q, M, 3703
Output (English): z, w, x, g, S, u, T, d, z, Q, M