class Caesar
 
  def initialize
    string = $stdin.gets
    data = string.chomp.split(' ')
    val = 0
    data.each do |str|
      case str.size()
      when 3
        val = checker3(str)
      when 4
        val = checker4(str)
      end
      break if val
    end
 
    s = ''
    string.each_byte do |ch|
      if ch != 32 && ch != 46 && ch != 10 && ch != 0 && val
        s += convert(ch, val).chr
      else
	s += ch.chr
      end
    end
    puts s
  end
 
  def convert(ch, shift)
    val = ch + shift
    s = val%123

    if s < 97
      97+s
    else
      s
    end
  end
 
  def checker4(string)
    list4 = ["this","that"]
    list4.each do |list|
      1.upto(25) do |k|
	count = 0
        index = 0
        string.each_byte do |ch|
	  s = list[count]
	  m = convert(ch, k)	
	  count += 1
          next if s-m != 0
          index += 1
        end
        return k if index == 4
      end
    end
    return false
  end
 
  def checker3(string)
    list3 = ["the"]
    list3.each do |list|
      1.upto(25) do |k|
	count = 0
        index = 0
        string.each_byte do |ch|
	  s = list[count]
	  m = convert(ch, k)	
	  count += 1
          next if s-m != 0
          index += 1
        end
        return k if index == 3
      end
    end
    return false
  end
end
 
c = Caesar.new