# coding: utf-8

class Caesar
  def initialize
    @hints = ["the", "this", "that"]
    @codes = %w(a b c d e f g h i j k l m n o p q r s t u v w x y z)
  end

  def solve
    while line = gets do
      line.chomp!
      0.upto(25).each do |i|
        tmp = ""
        for j in 0..line.size - 1 do
          if line[j] =~ /[a-z]/ then
            tmp << @codes[(line[j].ord - "a".ord + i) % 26]
          else
            tmp << line[j]
          end
        end
        @hints.each do |hint|
          if tmp.include?(hint) then
            puts tmp
            break
          end
        end
      end
    end
  end
end

Caesar.new.solve