Task: Program Execution
Input (English): 1, 1, ['1431', '2685', '3781']
Output (English): 1431