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