while s=gets
s = s.chomp
for _ in 0...27
  for i in 0...s.length
    c = s[i].ord
    if "a".ord <= c && c <= "z".ord
      c = (c-"a".ord+1)%26+"a".ord
    elsif "A".ord <= c && c <= "Z".ord
      c = (c-"A".ord+1)%26+"A".ord
    end
    s[i] = c.chr
  end
  t = s.downcase
  if t.index("this")!=nil || t.index("that")!=nil || t.index("the")!=nil
    puts s
    break
  end
end
end