import Control.Applicative main = putStrLn =<< reverse <$> getLine