Task: Program Execution
Input (English): 9819, 4777, 981, G, V, t, X, 8399, 3303, q, z, Q, 2449, q, Y, y, 8331, 5111, S, h
Output (English): 9819, 4777, 981, 8399, 3303, 2449, 8331, 5111