Task: Program Execution
Input (English): 6, ['8931', '3677', '3931', 'Y', '2827', '2351', 'X', '7459', 'G', '3513', 'S', '2025']
Output (English): X, 7459, G, 3513, S, 2025