Task: Program Execution
Input (English): 1, 1, ['8773', '1663', '8799']
Output (English): 3778