Task: Program Execution
Input (English): 3, 3, ['t', '9159', 'X', '8737', 'R', '5491']
Output (English): X