"""simple docstring"""





from itertools import permutations





def        a_  (   _lowerCAmelCase						:				tuple  ):





       '''simple docstring'''

       if num[3] % 2 != 0:
              return False

       if (num[2] + num[3] + num[4]) % 3 != 0:
              return False

       if num[5] % 5 != 0:
              return False

       lowercase__    :	Tuple     					=			[7, 11, 13, 17]
       for i, test in enumerate(lowercase_  ):
              if (num[i + 4] * 100 + num[i + 5] * 10 + num[i + 6]) % test != 0:
                     return False
       return True





def        a_  (   _lowerCAmelCase						:				int = 10  ):





       '''simple docstring'''

       return sum(
           int(''.join(map(lowercase_     ,				lowercase_  )  )  )
           for num in permutations(range(lowercase_  )  )
           if is_substring_divisible(lowercase_  )  )


if __name__ == "__main__":
       print(f'''{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))

