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