There should be two different sums, if not the the final sum will be added to the first sum and thus wrong output.