fin = open('words.txt')
total_words_used = 0
for line in fin:
    word = line.strip()
    def avoids(word,letters):
        x = 0
        total = 0
        global total_words_used
        global total_words
        for i in range(len(letters)):
            letter = letters[x]
            x+=1
            if letter not in word:
                total +=1
        if total == len(letters):
            #return word
            total_words_used +=1
    
    avoids(word,'zjxqk')
print (113809-total_words_used)
#17945 words were avoided using this combination
