while line = gets do
  while line !~ /th(e|is|at)/
    line = line.unpack("C*").map{|n|
      if n >= 97 and n <= 122 then
        (n-97 + 1)%26+97
      else
        n
      end
    }.pack("C*")
  end
  puts line
end