s = gets s = s.reverse s.chars {|c| if c == '<' then print '>' elsif c == '>' print '<' end } print "\n"