main :: IO ()
main = do
  _ <- getLine
  a <- fmap read . words <$> getLine :: IO [Int]
  putStrLn . unwords . fmap show $ solve a []

solve :: [Int] -> [Int] -> [Int]
solve [] ls = ls
solve (h:ls) ls' =  solve ls (h : reverse ls')
