puts gets.chomp.chars.map(&:to_i).map{|i| i == 0 ? 10 : i}.sum