Task: Program Execution
Input (English): 9, 9, ['7239', 'K', '4529', 'W', '8657', '9937', '5251', 'W', '5197']
Output (English): 5197