import Control.Applicative
import Data.List
main = do
  n<-getLine
  ws<-words <$> getLine
  putStrLn $ unwords $ myReverse ws

myReverse :: [a]->[a]
myReverse [] = []
myReverse (x:xs) = (myReverse xs) ++ [x]