prints the sum of a set of intergers read from cin