Task: Program Execution
Input (English): 1065, 943, 1247, 7969, 5135, 2461
Output (English): 6