Task: Program Execution
Input (English): 6193, 1075, 2845, 8989, 5731, N
Output (English): 6193, 1075, 2845, 8989, 5731, 14