Task: Program Execution
Input (English): 2, 3, ['M', '3181', '2927', 'K']
Output (English): 6108