


"""simple docstring"""







from itertools import permutations
def _A						(						lowercase		):







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

    a 		=[7, 11, 13, 17]
    for i, test in enumerate(UpperCamelCase__		):
        if (num[i + 4] * 1_00 + num[i + 5] * 10 + num[i + 6]) % test != 0:
            return False
    return True
def _A						(						lowercase = 10		):







    """simple docstring"""
    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 baseaa







def 			lowerCamelCase_		(       UpperCamelCase__				:      str      )     ->       bytes:





				"""simple docstring"""


				return baseaa.aaaencode(string.encode('utf-8'      )      )







def 			lowerCamelCase_		(       UpperCamelCase__				:      bytes      )     ->       str:





				"""simple docstring"""


				return baseaa.aaadecode(UpperCamelCase__      ).decode('utf-8'      )


if __name__ == "__main__":
					import doctest

					doctest.testmod()


