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