"""simple docstring"""





def        a_  (   _lowerCAmelCase						:				int  ):





       '''simple docstring'''

       if a < 0:
              raise ValueError('Input value must be a positive integer'  )
       elif isinstance(_lowerCAmelCase     ,				_lowerCAmelCase  ):
              raise TypeError('Input value must be a \'int\' type'  )
       return bin(_lowerCAmelCase  ).count('1'  )


if __name__ == "__main__":
       import doctest

       doctest.testmod()


"""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))

