Task: Program Execution
Input (English): 2, ['1749', '7147', '4499', '6905', '4945', '5563', 'K', 'Q', 'I']
Output (English): 1749, 7147