while s = gets
    (1..26).each{|i|
        chrs = s.chars.map{|ch|
            if ch==" " or ch=="."
                ch
            elsif (ch.ord+i)>('z'.ord)
                ch = ((ch.ord+i-'z'.ord-1)+'a'.ord).chr
            else
                ch = (ch.ord+i).chr
            end
        }
        sb = chrs.join("")
        if sb.match(".*this.*") or sb.match(".*the.*") or sb.match(".*that.*")
            puts sb
            break
        end
    }
end