import Control.Monad change '>' = '<' change '<' = '>' main = do str <- getLine putStrLn$reverse$fmap change str