string1 = input('Enter your string: ') for letter in string1: string2 = string1.count(letter,0) ss = str(string2) print(ss)