import qualified Data.ByteString.Char8 as BS
import Data.Maybe

readInt = fst . fromJust . BS.readInt

readIntList = map readInt . BS.words

getInt = readInt <$> BS.getLine

getIntList = readIntList <$> BS.getLine

simulate :: [Int] -> [Int] -> [Int]
simulate [] b = reverse b
simulate (a : as) b = simulate as (reverse (a : b))

main = do
  n <- getInt
  as <- getIntList
  putStrLn $ unwords (map show (simulate as []))
