line = gets.chomp

("a".."z").to_a.size.times do |step|
  transformed = line.gsub(/[a-z]/){|char| char == 'z' : 'a' : char.succ }
  words = transformed.split
  if words.include?('the') || words.include?('this') || words.include?('that')
    puts transformed
    break
  end
end