num = gets.to_s.split(" ") str = gets.to_s sum = 0 num.each{|n| sum = sum + n.to_i } puts "#{sum} #{str}"