from __future__ import annotations




def       __lowerCAmelCase      (						A_   : int					)    ->  bool:
  __UpperCAmelCase						    =       str(A_					)
  return len(A_					) == 9 and set(A_					) == set("123456789"					)




def       __lowerCAmelCase      (						)    ->  int | None:
  for base_num in range(99_99						,	49_99						,	-1					):
    __UpperCAmelCase						    =       10_00_02 * base_num
    if is_9_pandigital(A_					):
      return candidate

  for base_num in range(3_33						,	99						,	-1					):
    __UpperCAmelCase						    =       1_00_20_03 * base_num
    if is_9_pandigital(A_					):
      return candidate

  return None


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




from abc import ABC, abstractmethod
from argparse import ArgumentParser


class 			UpperCAmelCase__    (		snake_case					):



  """simple docstring"""






  @staticmethod
  @abstractmethod
  def 	_UpperCAmelCase				(				__lowerCAmelCase:			ArgumentParser   ) -> Tuple:




    '''simple docstring'''




    raise NotImplementedError()






  @abstractmethod
  def 	_UpperCAmelCase				(				self:			List[str]   ) -> List[Any]:




    '''simple docstring'''




    raise NotImplementedError()



