



"""simple docstring"""







import math

def 	lowerCAmelCase__      (  lowerCamelCase__      )			->				list[int]:
							if not isinstance(__lowerCamelCase					,   __lowerCamelCase      ):
														A    =       f"""Input value of [number={number}] must be an integer"""
														raise TypeError(__lowerCamelCase      )
							if number < 1:
														A    =       f"""Input value of [number={number}] must be a positive integer"""
														raise ValueError(__lowerCamelCase      )
							A    =       [number]
							while number != 1:
														if number % 2 == 0:
																					A    =       math.floor(math.sqrt(__lowerCamelCase      )      )
														else:
																					A    =       math.floor(
																					    math.sqrt(__lowerCamelCase      ) * math.sqrt(__lowerCamelCase      ) * math.sqrt(__lowerCamelCase      )      )
														sequence.append(__lowerCamelCase      )
							return sequence


if __name__ == "__main__":
							import doctest

							doctest.testmod()







import os






def  _UpperCAmelCase						( )		->Tuple:


 '''simple docstring'''
 snake_case :			Dict							=   0
 snake_case :			int							=   0
 with open(os.path.dirname(__lowerCamelCase							) + '''/p022_names.txt'''							) as file:
  snake_case :			int							=   str(file.readlines()[0]							)
  snake_case :			Any							=   name.replace('''"'''			,  ''''''							).split(''','''							)

 name.sort()
 for i in range(len(__lowerCamelCase							)							):
  for j in name[i]:
   temp_sum += ord(__lowerCamelCase							) - ord('''A'''							) + 1
  total_sum += (i + 1) * temp_sum
  snake_case :			List[Any]							=   0
 return total_sum


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






