Task: Program Execution
Input (English): 2, 2, ['M', '1127']
Output (English): 1127