



from itertools import permutations





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

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





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


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










import os

try:
 from .build_directory_md import good_file_paths
except ImportError:
 from build_directory_md import good_file_paths  # type: ignore

__snake_case						:Optional[Any]      		=     list(good_file_paths())
assert filepaths, "good_file_paths() failed!"

__snake_case						:Any      		=     [file for file in filepaths if file != file.lower()]
if upper_files:
 print(f'{len(upper_files)} files contain uppercase characters:')
 print('''\n'''.join(upper_files) + '''\n''')

__snake_case						:Tuple      		=     [file for file in filepaths if ''' ''' in file]
if space_files:
 print(f'{len(space_files)} files contain space characters:')
 print('''\n'''.join(space_files) + '''\n''')

__snake_case						:Optional[int]      		=     [file for file in filepaths if '''-''' in file]
if hyphen_files:
 print(f'{len(hyphen_files)} files contain hyphen characters:')
 print('''\n'''.join(hyphen_files) + '''\n''')

__snake_case						:Optional[int]      		=     [file for file in filepaths if os.sep not in file]
if nodir_files:
 print(f'{len(nodir_files)} files are not in a directory:')
 print('''\n'''.join(nodir_files) + '''\n''')

__snake_case						:int      		=     len(upper_files + space_files + hyphen_files + nodir_files)
if bad_files:
 import sys

 sys.exit(bad_files)





