Task: Program Execution
Input (English): 2, 6, ['X', 'K', '4937', '1851', '4663', '7997', '9707', '7881']
Output (English): 7997, 4663, 1851, 4937, K