print sum from the input