Task: Program Execution
Input (English): 2, 4, ['D', '4403', 'M', 'I']
Output (English): IM3044