#puts gets.gsub(//, '<').gsub(/tmp/, '>') puts gets.chomp.gsub(/<|>/, '<' => '>', '>' => '<').reverse