Task: Program Execution
Input (English): 1, 2, ['M', 'D']
Output (English): DM