Task: Program Execution
Input (English): 6, 9, ['T', '5195', '925', '6137', 'B', '9785', 'W', 'L', '4687', '15']
Output (English): 14472