input = gets.chomp.reverse size = input.size-1 for i in 0..size if input[i] == "<" print ">" else print "<" end end