s = gets.chomp (0..s.length-1).to_a.reverse.each do|i| if s[i] == '>' then print '<' elsif s[i] == '<' then print '>' end end puts