module Main where

import Control.Applicative
import Control.Monad

main :: IO ()
main = do
    n <- readLn
    as <- forM [1 .. n] $ \_ -> readLn
    let ans = sum as :: Integer
    print ans