"""simple docstring"""






from itertools import permutations


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


def 			UpperCAmelCase__       (				lowerCAmelCase__     :int = 1_0		) ->    Optional[Any]:
      '''simple docstring'''


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


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




def    __lowercase     (						lowerCamelCase					:     str	):
 UpperCamelCase_					:						Dict =					0
 for ch in input_str:
  UpperCamelCase_					:						Tuple =					ord(lowerCamelCase	)
  UpperCamelCase_					:						str =					pow(2  ,  lowerCamelCase	)

  # If we already turned on bit for current character's unicode
  if bitmap >> ch_unicode & 1 == 1:
   return False
  bitmap |= ch_bit_index_on
 return True


if __name__ == "__main__":
   import doctest

   doctest.testmod()



