





'''simple docstring'''






import os
def   UpperCamelCase__ (						):





      """simple docstring"""


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

      names.sort()

      _lowerCAmelCase					=				0
      _lowerCAmelCase					=				0

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

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


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













'''simple docstring'''






def   UpperCamelCase__ (						lowerCAmelCase    ):





      """simple docstring"""


      if not isinstance(lowerCAmelCase				,      lowerCAmelCase    ):
            raise ValueError("""Input must be an integer"""    )
      if input_num <= 0:
            raise ValueError("""Input must be positive"""    )
      return sum(
          divisor for divisor in range(1				,      input_num // 2 + 1    ) if input_num % divisor == 0    )


if __name__ == "__main__":
      import doctest

      doctest.testmod()






