"""simple docstring"""





import os





def        a_  (   ):





       '''simple docstring'''

       with open(os.path.dirname(_lowerCAmelCase  ) + '/p022_names.txt'  ) as file:
              lowercase__    :	Union[str, Any]     					=			str(file.readlines()[0]  )
              lowercase__    :	Tuple     					=			names.replace('"'     ,				''  ).split(','  )

       names.sort()

       lowercase__    :	Tuple     					=			0
       lowercase__    :	Optional[Any]     					=			0

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

              total_score += (i + 1) * name_score
              lowercase__    :	Tuple     					=			0
       return total_score


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


"""simple docstring"""





from collections.abc import Sequence





def        a_  (   _lowerCAmelCase						:				Sequence[float]     ,				_lowerCAmelCase						:				float  ):





       '''simple docstring'''

       return sum(c * (x**i) for i, c in enumerate(_lowerCAmelCase  )  )





def        a_  (   _lowerCAmelCase						:				Sequence[float]     ,				_lowerCAmelCase						:				float  ):





       '''simple docstring'''

       lowercase__    :	int     					=			0.0
       for coeff in reversed(_lowerCAmelCase  ):
              lowercase__    :	List[Any]     					=			result * x + coeff
       return result


if __name__ == "__main__":
       _UpperCamelCase     :		int											=					(0.0, 0.0, 5.0, 9.3, 7.0)
       _UpperCamelCase     :		Dict											=					1_0.0
       print(evaluate_poly(poly, x))
       print(horner(poly, x))

