Task: Program Execution
Input (English): 2, 2, ['5823', 'R']
Output (English): R