import Control.Monad
import Data.Maybe
import qualified Data.ByteString.Char8 as BS
import Data.List

readInt = fst . fromJust . BS.readInt
readIntList = map readInt . BS.words
getInt = readInt <$> BS.getLine
getIntList = readIntList <$> BS.getLine

main = do
    n <- getInt
    as <- zip (cycle [True, False]) <$> getIntList
    let (os, es) = partition fst as
        ans | odd n = (reverse (map snd os)) ++ (map snd es)
            | otherwise = (reverse (map snd es)) ++ (map snd os)
    putStrLn . unwords $ map show ans