Task: Program Execution
Input (English): 2, ['8587', '5307', '1023', 'o', 'n', '2343', 'E', '6249', 'q', 'J', 'K', '4199', '7797', '2173']
Output (English): 8587, 5307