Task: Program Execution
Input (English): 3, 3, ['4141', '3373', 'Q']
Output (English): Q