import Data.List
import Control.Monad
import Control.Applicative

readDigits = map read <$> words <$> getLine :: IO [Int]

main = do
    _ <- getLine
    putStrLn =<< unwords . map show . reverse <$> readDigits