
'''simple docstring'''






from __future__ import annotations





def      UpperCAmelCase      (		lowerCamelCase_  :int ):







		'''simple docstring'''
		snake_case_		:							Tuple			       =						str(lowerCamelCase_ )
		return len(lowerCamelCase_ ) == 9 and set(lowerCamelCase_ ) == set("""123456789""" )





def      UpperCAmelCase      (		):







		'''simple docstring'''
		for base_num in range(99_99				,      49_99				,      -1 ):
				snake_case_		:							Optional[Any]			       =						10_00_02 * base_num
				if is_9_pandigital(lowerCamelCase_ ):
						return candidate

		for base_num in range(3_33				,      99				,      -1 ):
				snake_case_		:							Optional[int]			       =						1_00_20_03 * base_num
				if is_9_pandigital(lowerCamelCase_ ):
						return candidate

		return None


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



'''simple docstring'''






def      UpperCAmelCase      (		lowerCamelCase_  :int ):







		'''simple docstring'''
		if num < 0:
				return False

		snake_case_		:							int			       =						num
		snake_case_		:							int			       =						0
		while num > 0:
				snake_case_		:							Tuple			       =						rev_num * 10 + (num % 10)
				num //= 10

		return num_copy == rev_num


if __name__ == "__main__":
							import doctest

							doctest.testmod()