Task: Program Execution
Input (English): 3, 5, ['5011', '1189', 'H', 'F', '3857', '2423', '4235', '4323', 'o', 'd', 'o', '7583', '7413', 'm', '3467', '2445', '8919', 'a', '27', '4887', '3771']
Output (English): 3857FH