Task: Program Execution
Input (English): 3, 6, ['4091', '5345', '109', 'K', '8665', 'Q']
Output (English): Q, 8665, K, 109