Task: Program Execution
Input (English): 3, 3, ['T', '4793', '3501']
Output (English): 3501