




import os




def        __SCREAMING_SNAKE_CASE (	)							->						int:

    """simple docstring"""


    __UpperCamelCase			=    0
    __UpperCamelCase			=    0
    with open(os.path.dirname(lowercase_   ) + '''/p022_names.txt'''   ) as file:
        __UpperCamelCase			=    str(file.readlines()[0]   )
        __UpperCamelCase			=    name.replace('''\"'''       ,  ''''''   ).split(''','''   )

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


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













def  A_(      A ):
	if not isinstance(A					,   A ):
		UpperCAmelCase_		    =  f"""Input value of [number={number}] must be an integer"""
		raise TypeError(A )
	if number < 0 or number % 2 == 1:
		return False
	UpperCAmelCase_		    =  int(number**0.5 )
	return number == number_sqrt * (number_sqrt + 1)


if __name__ == "__main__":
				import doctest

				doctest.testmod()


