Task: Program Execution
Input (English): G, U, E, 2361, 3499, 4873, 8857, Q, L
Output (English): G, U, E, Q, L