Task: Program Execution
Input (English): 5, 5, ['z', 'h', '2377', 'f', '6365', 'Y', 'b']
Output (English): 6365