#Akshat shah
#It 211
#Project 5

import itertools

#Define get_permutations method
def get_permutations(input_string):

    #Open the dict.txt file
    fin = open("dict.txt", "r")
    
    #readline
    line = fin.readline()

    while line !="":
        word = line.strip("\n")
        if word[0] == word[0].lower():
            for get_permutations in perms:
                if perms == word[0]:
                    print(word)
    line = fin.readline()

    fin.close()

#Input method
input_string = input("Enter an input string: ")

# Source code for obtaining permutations
letters = list(input_string)
permutation_list = list(itertools.permutations(letters))
permutations = [ ]
for perm in permutation_list:
    permutations.append(''.join(perm))
print(permutations)

#INPUT FILE(dict.txt)
dict.txt