Task: Program Execution
Input (English): 6, 6, ['T', '4721', '5111', 'v', 'P', '7549', 'W']
Output (English): 7549