gets;x=gets.split.map(&:to_i);s=x.inject(:+) p x.inject(0){|r,e| s