



import os

def       A_   (						):

				"""simple docstring"""
				a__					   =		0
				a__					   =		0
				with open(os.path.dirname(__a		) + """/p022_names.txt"""		) as file:
								a__					   =		str(file.readlines()[0]		)
								a__					   =		name.replace("""\""""			,		""""""		).split(""","""		)

				name.sort()
				for i in range(len(__a		)		):
								for j in name[i]:
												temp_sum += ord(__a		) - ord("""A"""		) + 1
								total_sum += (i + 1) * temp_sum
								a__					   =		0
				return total_sum


if __name__ == "__main__":
	print(solution())






from collections import defaultdict

def       A_   (						__a  :					str		):

				"""simple docstring"""
				a__					   =		defaultdict(__a		)
				# Creating a dictionary containing count of each word
				for word in sentence.split():
								occurrence[word] += 1
				return occurrence


if __name__ == "__main__":
	for word, count in word_occurrence("""INPUT STRING""").items():
		print(f"""{word}: {count}""")

