Task: Program Execution
Input (English): 5, 6, ['M', '4399', '385', '793', 'p', 'W']
Output (English): Wp