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