Task: Program Execution
Input (English): 2, 3, ['h', '1751', 'h', '5869']
Output (English): 1751