module Main where import Control.Applicative import Control.Monad import Data.Char main :: IO () main = do ss <- getLine print . sum . fmap digitToInt $ filter isDigit ss