r=0;gets.scan(/(\d)/){|i|r+=i[0].to_i};p r