Task: Program Execution
Input (English): 2, 3, ['U', 'q', '4993', '4797', 'X', 'Y', 'w', '5251']
Output (English): q, 4993