result_dict = {} word = list(input()) for i in word: result_dict[i] = result_dict.get(i, 0) + 1 print(result_dict)