Task: Program Execution
Input (English): 8993, 2953, 6709, G, 8675, 7253, 1563, 3787, 7363, X, 8961, N, 5869, U, Q, 4249, 2901, 2815, 147, A
Output (English): G, X, N, U, Q, A