Task: Program Execution
Input (English): 2, 5, ['i', '3451', 'I', '5859', 'M']
Output (English): M5859I3451