Task: Program Execution
Input (English): 2, ['4761', 'h', '6241', 'd']
Output (English): 6241, d