import Data.Char main = getLine >>= print . sum . map (\x -> if x == 0 then 10 else x) . map digitToInt