Task: Program Execution
Input (English): 5, 5, ['c', '8119', 'R', '5687', 'O', '5645']
Output (English): O