Task: Program Execution
Input (English): 3, 3, ['6831', 'Q', 'B', '9423']
Output (English): B