Task: Program Execution
Input (English): 5, 7, ['q', '2487', '6629', '169', '5123', 'N', '1721', 'e', '3019', '6359', '8369', '2325']
Output (English): 5123, N, 1721