input = gets(chomp: true) puts input.tr("<>", "><").reverse