fichier = open("dico.txt", "r")
liste_mots = fichier.readlines()           
fichier.close()

for mot in liste_mots:
    mot = mot.rstrip()
    if len(mot)<10 and len(mot)%2==1 and mot[len(mot)//2].lower() == "w":
        print(mot)
