Task: Program Execution
Input (English): G, 9343, g, t, 7105, 6995, 2899, 7705, N, 6735, 2003, Q, r, q, r, 3869, 311, 1529, 8379, 7217, X
Output (English): G, g, t, N, Q, r, q, r, X