import Control.Applicative

r :: [Int] -> [Int]
r = foldl (\acc x -> x:acc ) []

main :: IO ()
main = do
    _ <- getLine
    s <- map read . words <$> getLine
    putStrLn $ unwords $ map show (r s) 
