tab = ('a'..'z').to_a
while sen = gets do
  26.times do
    if sen.include?('the') or sen.include?('this') or sen.include?('that')
      puts sen
      break
    end

    sen.length.times do |i|
      next if sen[i] !~ /[a-z]/
      index = (tab.index(sen[i]) + 1)%26
      sen[i] = tab[index]
    end
  end
end