{-# LANGUAGE OverloadedStrings #-}

import qualified Data.Vector as V
import qualified Data.ByteString.Char8 as B
import Data.Maybe (fromJust)

main :: IO ()
main = do
    n <- fst . fromJust . B.readInt <$> B.getLine
    as <- V.fromList . B.words <$> B.getLine
    let printn i = do
            B.putStr $ as `V.unsafeIndex` i
            B.putStr " "
    mapM_ printn [(n - 1), (n - 3) .. 0]
    mapM_ printn $ if odd $ V.length as then [1, 3 .. (n - 1)] else [0, 2 .. (n - 1)]
