"""simple docstring"""






from __future__ import annotations



def 						a_		(      lowerCamelCase ):
				UpperCAmelCase__    =							str(lowerCamelCase )
				return len(lowerCamelCase ) == 9 and set(lowerCamelCase ) == set('123456789' )



def 						a_		(      ):
				for base_num in range(9_9_9_9      ,    4_9_9_9      ,    -1 ):
								UpperCAmelCase__    =							1_0_0_0_0_2 * base_num
								if is_9_pandigital(lowerCamelCase ):
												return candidate

				for base_num in range(3_3_3      ,    9_9      ,    -1 ):
								UpperCAmelCase__    =							1_0_0_2_0_0_3 * base_num
								if is_9_pandigital(lowerCamelCase ):
												return candidate

				return None


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



"""simple docstring"""






import re



def 						a_		(      lowerCamelCase ):
				return [char.split() for char in re.split(r'[^ a-z A-Z 0-9 \s]'      ,    str_ )]



def 						a_		(      lowerCamelCase ):
				UpperCAmelCase__    =							split_input(str_ )
				return "".join(
				    [''.join([char.capitalize() for char in sub_str] ) for sub_str in string_split] )



def 						a_		(      lowerCamelCase      ,    lowerCamelCase      ,    lowerCamelCase ):
				try:
								UpperCAmelCase__    =							split_input(lowerCamelCase )
								if upper:
												UpperCAmelCase__    =							''.join(
												    [
												        separator.join([char.upper() for char in sub_str] )
												        for sub_str in string_split
												    ] )
								else:
												UpperCAmelCase__    =							''.join(
												    [
												        separator.join([char.lower() for char in sub_str] )
												        for sub_str in string_split
												    ] )
								return res_str
				except IndexError:
								return "not valid string"



def 						a_		(      lowerCamelCase ):
				return to_simple_case(lowerCamelCase )



def 						a_		(      lowerCamelCase ):
				try:
								UpperCAmelCase__    =							to_simple_case(lowerCamelCase )
								return res_str[0].lower() + res_str[1:]
				except IndexError:
								return "not valid string"



def 						a_		(      lowerCamelCase      ,    lowerCamelCase ):
				return to_complex_case(lowerCamelCase      ,    lowerCamelCase      ,    '_' )



def 						a_		(      lowerCamelCase      ,    lowerCamelCase ):
				return to_complex_case(lowerCamelCase      ,    lowerCamelCase      ,    '-' )


if __name__ == "__main__":
						__import__('doctest').testmod()



