



"""simple docstring"""






from __future__ import annotations


def      _lowercase							(    __snake_case      )		->  bool:
			__lowerCAmelCase :    List[str]				=			str(__snake_case      )
			return len(__snake_case      ) == 9 and set(__snake_case      ) == set("123456789"      )


def      _lowercase							(    )		->  int | None:
			for base_num in range(9_999   ,4_999   ,-1      ):
						__lowerCAmelCase :    Optional[Any]				=			100_002 * base_num
						if is_9_pandigital(__snake_case      ):
									return candidate

			for base_num in range(333   ,99   ,-1      ):
						__lowerCAmelCase :    int				=			1_002_003 * base_num
						if is_9_pandigital(__snake_case      ):
									return candidate

			return None


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




"""simple docstring"""






# Function to print upper half of diamond (pyramid)


def      _lowercase							(    __snake_case      )		->  Dict:
			for i in range(0   ,__snake_case      ):
						for _ in range(0   ,n - i - 1      ):  # printing spaces
									print(" "   ,end=""      )
						for _ in range(0   ,i + 1      ):  # printing stars
									print("* "   ,end=""      )
						print()


def      _lowercase							(    __snake_case      )		->  Tuple:
			for i in range(__snake_case   ,0   ,-1      ):
						for _ in range(__snake_case   ,0   ,-1      ):  # printing stars
									print("* "   ,end=""      )
						print()
						for _ in range(n - i + 1   ,0   ,-1      ):  # printing spaces
									print(" "   ,end=""      )


def      _lowercase							(    __snake_case      )		->  Any:
			if n <= 0:
						print("       ...       ....        nothing printing :("      )
						return
			floyd(__snake_case      )  # upper half
			reverse_floyd(__snake_case      )  # lower half


if __name__ == "__main__":
	print(R'| /\ | |- |  |-  |--| |\  /| |-')
	print(R'|/  \| |- |_ |_  |__| | \/ | |_')
	__snake_case				:  Tuple =       1
	while K:
		__snake_case				:  List[str] =       int(input('enter the number and , and see the magic : '))
		print()
		pretty_print(user_number)
		__snake_case				:  Optional[Any] =       int(input('press 0 to exit... and 1 to continue...'))

	print('Good Bye...')