Task: Program Execution
Input (English): 4, 4, ['f', '1507', 'c', '8757', '9429', 'h', 'T']
Output (English): 7578