



from __future__ import annotations





def 							A			(  _UpperCAmelCase       :     int					)       ->				bool:







			'''simple docstring'''
			_UpperCAmelCase	 =     str(_UpperCAmelCase					)
			return len(_UpperCAmelCase					) == 9 and set(_UpperCAmelCase					) == set('123456789'					)





def 							A			(  )       ->				int | None:







			'''simple docstring'''
			for base_num in range(9_999							,     4_999							,     -1					):
						_UpperCAmelCase	 =     100_002 * base_num
						if is_9_pandigital(_UpperCAmelCase					):
									return candidate

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

			return None


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





def 							A			(  _UpperCAmelCase       :     int							,     _UpperCAmelCase       :     int					)       ->				str:







			'''simple docstring'''
			if a < 0 or b < 0:
						raise ValueError('the value of both inputs must be positive'					)

			_UpperCAmelCase	 =     str(bin(_UpperCAmelCase					)					)[2:]  # remove the leading "0b"
			_UpperCAmelCase	 =     str(bin(_UpperCAmelCase					)					)[2:]  # remove the leading "0b"

			_UpperCAmelCase	 =     max(len(_UpperCAmelCase					)							,     len(_UpperCAmelCase					)					)

			return "0b" + "".join(
			    str(int(char_a != char_b					)					)
			    for char_a, char_b in zip(a_binary.zfill(_UpperCAmelCase					)							,     b_binary.zfill(_UpperCAmelCase					)					)					)


if __name__ == "__main__":
							import doctest

							doctest.testmod()
