main = getLine >>= putStrLn . map f . reverse f '<' = '>' f '>' = '<'