import qualified Data.Vector.Unboxed as V
import qualified Data.Vector.Unboxed.Mutable as VM
import Data.ByteString.Char8 as B
import Data.Maybe
import Data.Char
import Data.List
import Control.Monad
import Control.Monad.ST

solve vec n 
    | even n = do
        xs <- V.forM (V.reverse $ V.fromList [1,3..n-1]) $ \i -> VM.read vec i >>= return
        ys <- V.forM (V.fromList [0,2..n-2]) $ \i -> VM.read vec i >>= return
        return $ xs V.++ ys
    | otherwise = do
        xs <- V.forM (V.fromList [1,3..n-2]) $ \i -> VM.read vec i >>= return
        ys <- V.forM (V.reverse $ V.fromList [0,2..n-1]) $ \i -> VM.read vec i >>= return
        return $ ys V.++ xs

main = do
    n <- readLn :: IO Int
    xs <- V.unfoldrN n (B.readInt . B.dropWhile isSpace) <$> B.getLine
    xs' <- V.unsafeThaw xs
    res <- solve xs' n
    Prelude.putStrLn $ Data.List.tail $ (V.foldl' (\s r -> s ++ " " ++ show r) "" res)