Task: Program Execution
Input (English): 3, 5, ['N', 'D', '9051', 'k', 'h', 'M']
Output (English): 9051kh