import Control.Monad(replicateM)
import Data.Char(digitToInt)
f :: [String] -> String
f (a:b:_) = show (read a + read b)
f _ = ""
main = do
    n <- readLn :: IO Int
    if n == 2 then (fmap f (replicateM 2 getLine)) >>= putStrLn else return ()