




"""simple docstring"""


def 					UpperCAmelCase__       (snake_case__							:					int		,   snake_case__							:					int    ):
  """simple docstring"""

  while b:
    _snake_case		,					_snake_case							:		Optional[int]								=  b, a % b
  return a


def 					UpperCAmelCase__       (snake_case__							:					int		,   snake_case__							:					int    ):
  """simple docstring"""

  return a if b == 0 else euclidean_gcd_recursive(snake_case__		,   a % b    )


def 					UpperCAmelCase__       ():
  """simple docstring"""

  print(F"euclidean_gcd(3, 5) = {euclidean_gcd(3		,   5    )}"    )
  print(F"euclidean_gcd(5, 3) = {euclidean_gcd(5		,   3    )}"    )
  print(F"euclidean_gcd(1, 3) = {euclidean_gcd(1		,   3    )}"    )
  print(F"euclidean_gcd(3, 6) = {euclidean_gcd(3		,   6    )}"    )
  print(F"euclidean_gcd(6, 3) = {euclidean_gcd(6		,   3    )}"    )

  print(F"euclidean_gcd_recursive(3, 5) = {euclidean_gcd_recursive(3		,   5    )}"    )
  print(F"euclidean_gcd_recursive(5, 3) = {euclidean_gcd_recursive(5		,   3    )}"    )
  print(F"euclidean_gcd_recursive(1, 3) = {euclidean_gcd_recursive(1		,   3    )}"    )
  print(F"euclidean_gcd_recursive(3, 6) = {euclidean_gcd_recursive(3		,   6    )}"    )
  print(F"euclidean_gcd_recursive(6, 3) = {euclidean_gcd_recursive(6		,   3    )}"    )


if __name__ == "__main__":
     main()





import os
def      a      (			)    ->      Any:





      """simple docstring"""



      with open(os.path.dirname(A__     ) + '/p022_names.txt'     ) as file:
            _lowercase	       =str(file.readlines()[0]     )
            _lowercase	       =names.replace('"'      ,   ''     ).split(','     )

      names.sort()

      _lowercase	       =0
      _lowercase	       =0

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

            total_score += (i + 1) * name_score
            _lowercase	       =0
      return total_score


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


