



from ..utils import DummyObject, requires_backends



class 		_lowercase		(       metaclass=UpperCAmelCase__	):
   _UpperCAmelCase     	=			['''torch''', '''scipy''']

   def __init__(      self			:       Tuple							,   *__lowerCAmelCase			:       Tuple							,   **__lowerCAmelCase			:       Union[str, Any]							)       ->				Optional[Any]:


    """simple docstring"""






    requires_backends(self							,   ["torch", "scipy"]							)

   @classmethod
   def 		A							(      cls			:       Union[str, Any]							,   *__lowerCAmelCase			:       str							,   **__lowerCAmelCase			:       Tuple							)       ->				Optional[Any]:


    """simple docstring"""






    requires_backends(cls							,   ["torch", "scipy"]							)




   @classmethod
   def 		A							(      cls			:       List[Any]							,   *__lowerCAmelCase			:       Any							,   **__lowerCAmelCase			:       Any							)       ->				Any:


    """simple docstring"""






    requires_backends(cls							,   ["torch", "scipy"]							)






from __future__ import annotations


def 	UpperCAmelCase__      (      UpperCAmelCase__ :int					):






 '''simple docstring'''

 a						=		str(UpperCAmelCase__					)
 return len(UpperCAmelCase__					) == 9 and set(UpperCAmelCase__					) == set("123456789"					)


def 	UpperCAmelCase__      (      ):






 '''simple docstring'''

 for base_num in range(99_99 ,					49_99 ,					-1					):
  a						=		10_00_02 * base_num
  if is_9_pandigital(UpperCAmelCase__					):
   return candidate

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

 return None


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

