Task: Program Execution
Input (English): 1, 1, ['4571', '3997']
Output (English): 1754