




from typing import TYPE_CHECKING

from ....utils import _LazyModule


lowercase__				:     Dict 		=						{"tokenization_tapex": ["TapexTokenizer"]}


if TYPE_CHECKING:
		from .tokenization_tapex import TapexTokenizer


else:
		import sys

		lowercase__				:     List[str] 		=						_LazyModule(__name__, globals()["__file__"], _import_structure)






from __future__ import annotations


def 						lowerCamelCase__    (		_A							):







	'''simple docstring'''





	snake_case_		    =     str(_A							)
	return len(_A							) == 9 and set(_A							) == set("123456789"							)


def 						lowerCamelCase__    (		):







	'''simple docstring'''





	for base_num in range(9999     ,	4999     ,	-1							):
		snake_case_		    =     100002 * base_num
		if is_9_pandigital(_A							):
			return candidate

	for base_num in range(333     ,	99     ,	-1							):
		snake_case_		    =     1002003 * base_num
		if is_9_pandigital(_A							):
			return candidate

	return None


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