
import torch
def 							SCREAMING_SNAKE_CASE_	(					)			->						Any:
       if torch.cuda.is_available():
              SCREAMING_SNAKE_CASE_							:				Union[str, Any]		=torch.cuda.device_count()
       else:
              SCREAMING_SNAKE_CASE_							:				List[Any]		=0
       print(f'Successfully ran on {num_gpus} GPUs'				)


if __name__ == "__main__":
 main()


import os
def 							SCREAMING_SNAKE_CASE_	(					)			->						List[str]:
       with open(os.path.dirname(UpperCAmelCase_				) + '''/p022_names.txt'''				) as file:
              SCREAMING_SNAKE_CASE_							:				Any		=str(file.readlines()[0]				)
              SCREAMING_SNAKE_CASE_							:				List[Any]		=names.replace('''"'''			,							''''''				).split(''','''				)

       names.sort()

       SCREAMING_SNAKE_CASE_							:				Optional[int]		=0
       SCREAMING_SNAKE_CASE_							:				Optional[int]		=0

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

              total_score += (i + 1) * name_score
              SCREAMING_SNAKE_CASE_							:				Any		=0
       return total_score


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