gets.chomp.each_char do |c| if c == ">" print "<" else print ">" end end puts ""