Task: Program Execution
Input (English): 1, 1, ['4977', '5087']
Output (English): 4977