S = gets.chomp.chars.map(&:to_i) ans = 0 S.each do |s| if s == 0 ans += 10 else ans += s end end puts ans