Task: Program Execution
Input (English): 1, 1, ['3721', '5411', '4483', '909', 'M']
Output (English): 3721