while l = gets
    str = l.chomp
    26.times do |i|
        decode = ""
        str.each_char.with_index do |ch|
            if ch.match(/[a-z]/)
                if ch.ord + i > 'z'.ord
                    decode += (ch.ord + i - 26).chr
                else
                    decode += (ch.ord + i).chr
                end
            else
                decode += ch
            end
        end
        if decode =~ /the|this|that/
            puts decode
        end
    end
end

