Task: Program Execution
Input (English): 2, 6, ['1003', 'k', 'x', 'k', 'M', '2371']
Output (English): 1732Mkxk