Task: Program Execution
Input (English): 3, 3, ['8641', '3815', 'B', 'Z']
Output (English): B