'''simple docstring'''




from __future__ import annotations



def     __snake_case			(							lowerCAmelCase							:  int      ):
 __UpperCAmelCase								=       str(lowerCamelCase_      )
 return len(lowerCamelCase_      ) == 9 and set(lowerCamelCase_      ) == set('123456789'      )



def     __snake_case			(							):






 for base_num in range(9999   ,	4999   ,	-1      ):
  __UpperCAmelCase								=       10_0002 * base_num
  if is_9_pandigital(lowerCamelCase_      ):
   return candidate

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

 return None


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








"""simple docstring"""







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available


A		=						{}

try:
			if not is_sentencepiece_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			A		=						['GPTSw3Tokenizer']


if TYPE_CHECKING:
			try:
						if not is_sentencepiece_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .tokenization_gpt_swa import GPTSwaTokenizer

else:
			import sys

			A		=						_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)



