import Data.Functor( (<$>))

putList [] = return ()
putList (x:xs) = putStr (show x) >> __putList xs
  where
    __putList [] = return ()
    __putList (x:xs) = putStr (' ':show x) >> __putList xs

putListLn list = putList list >> putStrLn ""

main = do
    getLine
    nums <- (read <$>) . words <$> getLine  ::IO [Int]
    putListLn $ reverse nums

