Task: Program Execution
Input (English): 1, ['2107', 'M']
Output (English): 2107