Task: Program Execution
Input (English): 4, 4, ['t', '1173', 'R', '8491']
Output (English): 8491