Task: Program Execution
Input (English): 4, 10, ['8099', '3287', '7391', '6109', 'M', 'A', 'h', 'H', '1231', '937', 'S']
Output (English): 6109MAhH1231937