import Control.Monad main = do n <- readLn as <- replicateM n getLine putStrLn . show . foldl (+) 0 . map read $ as