Task: Program Execution
Input (English): 2, 2, ['5981', 'R', 'J', '8135', 'Y', 'H', 'R', 'g', '8693', '7597']
Output (English): R