#!/usr/bin/env ruby
sentence = gets.chomp!

alphs = ('a'..'z').to_a
reserves = ['this', 'the', 'that']

while true
  (0..26).map do |n|
    pros = ""
    sentence.chars do |chr|
      if alphs.include?(chr)
        index = (alphs.index(chr) + n) % alphs.length
        pros << alphs[index]
      else
        pros << chr
      end
    end

    pros.delete(".").split(" ").each do |word|
      if reserves.include?(word)
        puts pros
        exit
      end
    end
  end
end