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