





"""simple docstring"""




from __future__ import annotations





def 	a_    (							_lowercase       ):
						_UpperCamelCase      : List[str]         =   str(_lowercase       )
						return len(_lowercase       ) == 9 and set(_lowercase       ) == set('''123456789'''       )





def 	a_    (							):
						for base_num in range(9999	,						4999	,						-1       ):
												_UpperCamelCase      : List[Any]         =   10_0002 * base_num
												if is_9_pandigital(_lowercase       ):
																		return candidate

						for base_num in range(333	,						99	,						-1       ):
												_UpperCamelCase      : str         =   100_2003 * base_num
												if is_9_pandigital(_lowercase       ):
																		return candidate

						return None


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










"""simple docstring"""




def 	a_    (							_lowercase = 100       ):
						_UpperCamelCase      : List[Any]         =   0
						_UpperCamelCase      : Optional[Any]         =   0
						for i in range(1	,						n + 1       ):
												sum_of_squares += i**2
												sum_of_ints += i
						return sum_of_ints**2 - sum_of_squares


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



