Task: Program Execution
Input (English): 2, 3, ['U', '7057', 'H', 'F', '9651', 'T', 'h', '9795', '6677', '3021', '6925']
Output (English): H7507