main = fmap reverse getLine >>= putStrLn