sum = 0 gets.chomp.delete("a-z").split("").map(&:to_i).each{|n| sum += n } puts sum