while s = gets
    (0..25).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
                ch = (ch.ord+i-('z'.ord-'a'.ord+1)).chr
            else
                ch = (ch.ord+i).chr
            end
        }
        sb = chrs.join
        if sb.match(/(this|the|that)/)
            puts sb
            break
        end
    }
end