Task: Program Execution
Input (English): 2, 2, ['V', 'Q', '8785', '8685', 'A', 'J', 'o', 'r', '5821', '3821']
Output (English): Q