Task: Program Execution
Input (English): 4, 4, ['q', '2503', '3029', 'Z', '4225']
Output (English): Z