import Data.Char main = print . sum . map digitToInt . filter isDigit =<< getLine