gets.chomp.split("").reverse.each { |i| print i == ">" ? "<" : ">" }