Task: Program Execution
Input (English): 3, 3, ['9057', 'Q', '8043', '8417']
Output (English): 8043