Task: Program Execution
Input (English): 2, 3, ['1029', 'f', '2851', '4375', 'N', 'K', 'O', '3505', '3247']
Output (English): 2851, f