import Control.Applicative
import Control.Monad
import Data.List
import Data.Char
strToInt s = (read :: String -> Int) s
strToInteger s = (read :: String -> Integer) s
strToDouble s = (read :: String -> Double) s

main :: IO ()
main = do
    -- 整数の入力
    _ <- getLine
    -- スペース区切り整数の入力
    l <- map strToInt . words <$> getLine
    -- 出力
    print $ solve l []

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