import Control.Applicative

solver :: [Int] -> String
solver xs = unwords . map show $ reverse xs

main :: IO()
main = do
  _ <- getLine
  ns <- map (read :: String -> Int) . words <$> getLine
  putStrLn $ solver ns