Task: Program Execution
Input (English): 6, ['4009', 'n', '8831', 'g', 'J', 'U', '1849', '7033', '517', '6833', '2239', '2773', 'X', 'O', '5457', '3747']
Output (English): 4009, 1849, X