


'''simple docstring'''


from itertools import permutations






def  __lowerCAmelCase (__lowerCAmelCase   ):
		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

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






def  __lowerCAmelCase (__lowerCAmelCase = 10   ):
		return sum(
		    int("".join(map(__lowerCAmelCase      , __lowerCAmelCase   )   )   )
		    for num in permutations(range(__lowerCAmelCase   )   )
		    if is_substring_divisible(__lowerCAmelCase   )   )


if __name__ == "__main__":
			print(F'''{solution() = }''')







'''simple docstring'''


from typing import Optional
from urllib.parse import quote

import huggingface_hub as hfh
from packaging import version






def  __lowerCAmelCase (__lowerCAmelCase      , __lowerCAmelCase      , __lowerCAmelCase = None   ):
		if version.parse(hfh.__version__   ).release < version.parse("0.11.0"   ).release:
				# old versions of hfh don't url-encode the file path
				_UpperCAmelCase		:       str								=      quote(__lowerCAmelCase   )
		return hfh.hf_hub_url(__lowerCAmelCase      , __lowerCAmelCase      , repo_type="dataset"      , revision=__lowerCAmelCase   )



