Task: Program Execution
Input (English): 1, 1, ['977', '1287']
Output (English): 779