



'''simple docstring'''

import os






def       __lowercase  ():
				with open(os.path.dirname(_SCREAMING_SNAKE_CASE       ) + '''/p022_names.txt'''       ) as file:
								SCREAMING_SNAKE_CASE  :						int      					= str(file.readlines()[0]       )
								SCREAMING_SNAKE_CASE  :						Tuple      					= names.replace('''"'''    ,	''''''       ).split(''','''       )

				names.sort()

				SCREAMING_SNAKE_CASE  :						str      					= 0
				SCREAMING_SNAKE_CASE  :						Tuple      					= 0

				for i, name in enumerate(_SCREAMING_SNAKE_CASE       ):
								for letter in name:
												name_score += ord(_SCREAMING_SNAKE_CASE       ) - 64

								total_score += (i + 1) * name_score
								SCREAMING_SNAKE_CASE  :						List[Any]      					= 0
				return total_score


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









'''simple docstring'''

from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


snake_case_			=     {
    """configuration_timesformer""": ["""TIMESFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP""", """TimesformerConfig"""],
}

try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	snake_case_			=     [
	    """TIMESFORMER_PRETRAINED_MODEL_ARCHIVE_LIST""",
	    """TimesformerModel""",
	    """TimesformerForVideoClassification""",
	    """TimesformerPreTrainedModel""",
	]

if TYPE_CHECKING:
	from .configuration_timesformer import TIMESFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, TimesformerConfig

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_timesformer import (
		    TIMESFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
		    TimesformerForVideoClassification,
		    TimesformerModel,
		    TimesformerPreTrainedModel,
		)

else:
	import sys

	snake_case_			=     _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)




