






"""simple docstring"""







import os

def _a			(		):







      """simple docstring"""






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

      names.sort()

      UpperCAmelCase          =	0
      UpperCAmelCase          =	0

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

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


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











"""simple docstring"""







from __future__ import annotations

def _a			(		_snake_case				,	_snake_case				,	_snake_case							):







      """simple docstring"""






      if (voltage, current, resistance).count(0							) != 1:
            raise ValueError("""One and only one argument must be 0"""							)
      if resistance < 0:
            raise ValueError("""Resistance cannot be negative"""							)
      if voltage == 0:
            return {"voltage": float(current * resistance							)}
      elif current == 0:
            return {"current": voltage / resistance}
      elif resistance == 0:
            return {"resistance": voltage / current}
      else:
            raise ValueError("""Exactly one argument must be 0"""							)


if __name__ == "__main__":
  import doctest

  doctest.testmod()



