


import os
from distutils.util import strtobool


def 	UpperCAmelCase__      (      UpperCAmelCase__ :Union[str, Any] ,					UpperCAmelCase__ :Any					):






 '''simple docstring'''

 for e in env_keys:
  a						=		int(os.environ.get(_lowerCamelCase ,					-1					)					)
  if val >= 0:
   return val
 return default


def 	UpperCAmelCase__      (      UpperCAmelCase__ :Any ,					UpperCAmelCase__ :Optional[Any]=False					):






 '''simple docstring'''

 a						=		os.environ.get(_lowerCamelCase ,					str(_lowerCamelCase					)					)
 return strtobool(_lowerCamelCase					) == 1  # As its name indicates `strtobool` actually returns an int...




def 	UpperCAmelCase__      (      UpperCAmelCase__ :List[Any] ,					UpperCAmelCase__ :Tuple="no"					):






 '''simple docstring'''

 a						=		os.environ.get(_lowerCamelCase ,					str(_lowerCamelCase					)					)
 return value






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() = }""")

