import Control.Applicative

_f :: [String] -> [String]
_f [] = []
_f [x] = [x]
_f (x:y:xs) = [x] ++ (f xs) ++ [y]

f = _f . reverse

main :: IO ()
main = do
	num <- getLine
	vals <- words <$> getLine
	putStrLn $ unwords  $ f vals
