





"""simple docstring"""






def      lowercase__ (					lowerCAmelCase__   :			Optional[Any]							,			lowerCAmelCase__   :			Any							,			lowerCAmelCase__   :			str							,			lowerCAmelCase__   :			str			)    ->			List[Any]:



			'''simple docstring'''
			if height >= 1:
						move_tower(height - 1							,			lowerCAmelCase__							,			lowerCAmelCase__							,			lowerCAmelCase__			)
						move_disk(lowerCAmelCase__							,			lowerCAmelCase__			)
						move_tower(height - 1							,			lowerCAmelCase__							,			lowerCAmelCase__							,			lowerCAmelCase__			)






def      lowercase__ (					lowerCAmelCase__   :			int							,			lowerCAmelCase__   :			Any			)    ->			Dict:



			'''simple docstring'''
			print("moving disk from"							,			lowerCAmelCase__							,			"to"							,			lowerCAmelCase__			)






def      lowercase__ (					)    ->			Dict:



			'''simple docstring'''
			a__  :	Optional[int]		 =			int(input("Height of hanoi: "			).strip()			)
			move_tower(lowerCAmelCase__							,			"A"							,			"B"							,			"C"			)


if __name__ == "__main__":
		main()






"""simple docstring"""






import os






def      lowercase__ (					)    ->			Optional[Any]:



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

			names.sort()

			a__  :	int		 =			0
			a__  :	Dict		 =			0

			for i, name in enumerate(lowerCAmelCase__			):
						for letter in name:
									name_score += ord(lowerCAmelCase__			) - 6_4

						total_score += (i + 1) * name_score
						a__  :	Tuple		 =			0
			return total_score


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