main = do a <- getLine b <- getLine putStrLn $ (show . sum . map (\x -> read x :: Int) $ words a) ++ " " ++ b