{-# 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 .(\s -> "0" : s) . B.words <$> B.getLine
    let printn i = do
            B.putStr $ as V.! i
            B.putStr " "
    mapM_ printn [n, (n - 2) .. 1]
    mapM_ printn $ if even $ length as then [2, 4 .. n] else [1, 3 .. n]
