Task: Program Execution
Input (English): 4, 7, ['6299', '7739', 'N', 'D', 'c', 'S', 'M', 'n']
Output (English): MScD