Task: Program Execution
Input (English): 2, 2, ['T', 'R', '1069', '8397']
Output (English): R