<reponame>mohammadbaharloo961127/Python_Codes
text = input()
dict = {}
for char in text:
    if char in dict:
        dict[char] += 1
    else:
        dict[char] = 1
print(dict)
text = input()
dict = {}
for char in text:
    if char in dict:
        dict[char] += 1
    else:
        dict[char] = 1
print(dict)