main = do s <- getLine putStrLn $ reverse $ map f s f x = if x == '>' then '<' else '>'