import enchant
d=enchant.Dict("en_UK")

word=input('Kelimeyi girin: ')
letters = [chr for chr in word]
repeat_check=[]

from itertools import permutations, combinations

for number in range(3, len(letters)+1):
    for current_set in combinations(letters,number):
        
        
        
        for current in permutations(current_set):
            current_word=''.join(current)
            if d.check(current_word) and current_word not in repeat_check:
                print(current_word)
                repeat_check.append(current_word)
