Task: Program Execution
Input (English): 1, 1, ['1241', '6369', '8719', '313']
Output (English): 1241