chr = "a"
alpha = []
26.times do
  alpha << chr
  chr = chr.next
end
sample = ["the", "this", "that"]
while code = gets.chomp
  chr = "a"
  plane = code
  while sample & plane.split(/\W+/) == []
    plane = code.split(//).map{|c|
      if c =~ /\w+/
        alpha[(c.ord + chr.ord) % 26]
      else
        c
      end
    }.join
    chr = chr.next
  end
  puts plane
end