Task: Program Execution
Input (English): 3, 5, ['6465', '5213', '4327', 'N', 'D', 'M']
Output (English): DN4327