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