






from itertools import permutations

def     snake_case   (UpperCAmelCase__    )			->							bool:
  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_:   Optional[int]        =							[7, 1_1, 1_3, 1_7]
  for i, test in enumerate(UpperCAmelCase__    ):
    if (num[i + 4] * 1_0_0 + num[i + 5] * 1_0 + num[i + 6]) % test != 0:
      return False
  return True

def     snake_case   (UpperCAmelCase__ = 1_0    )			->							int:
  return sum(
      int(''.join(map(UpperCAmelCase__      ,       UpperCAmelCase__    )    )    )
      for num in permutations(range(UpperCAmelCase__    )    )
      if is_substring_divisible(UpperCAmelCase__    )    )


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





'''simple docstring'''
from PIL import Image





def 			lowerCamelCase(							SCREAMING_SNAKE_CASE_       ,SCREAMING_SNAKE_CASE_     )		->		Image:

			def brightness(SCREAMING_SNAKE_CASE_     ) -> float:
						return 128 + level + (c - 128)

			if not -255.0 <= level <= 255.0:
						raise ValueError('level must be between -255.0 (black) and 255.0 (white)'     )
			return img.point(SCREAMING_SNAKE_CASE_     )


if __name__ == "__main__":
							# Load image
							with Image.open("image_data/lena.jpg") as img:
														# Change brightness to 100
														_SCREAMING_SNAKE_CASE			=						change_brightness(img, 1_00)
														brigt_img.save("image_data/lena_brightness.png", format="png")




