s=0 gets.chomp.chars.map(&:to_i).each{|c|s+=(c==0)?10:c} p s