

from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


A__						=							{
    "configuration_bigbird_pegasus": [
        "BIGBIRD_PEGASUS_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "BigBirdPegasusConfig",
        "BigBirdPegasusOnnxConfig",
    ],
}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						A__						=							[
						    "BIGBIRD_PEGASUS_PRETRAINED_MODEL_ARCHIVE_LIST",
						    "BigBirdPegasusForCausalLM",
						    "BigBirdPegasusForConditionalGeneration",
						    "BigBirdPegasusForQuestionAnswering",
						    "BigBirdPegasusForSequenceClassification",
						    "BigBirdPegasusModel",
						    "BigBirdPegasusPreTrainedModel",
						]


if TYPE_CHECKING:
						from .configuration_bigbird_pegasus import (
						    BIGBIRD_PEGASUS_PRETRAINED_CONFIG_ARCHIVE_MAP,
						    BigBirdPegasusConfig,
						    BigBirdPegasusOnnxConfig,
						)

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_bigbird_pegasus import (
												    BIGBIRD_PEGASUS_PRETRAINED_MODEL_ARCHIVE_LIST,
												    BigBirdPegasusForCausalLM,
												    BigBirdPegasusForConditionalGeneration,
												    BigBirdPegasusForQuestionAnswering,
												    BigBirdPegasusForSequenceClassification,
												    BigBirdPegasusModel,
												    BigBirdPegasusPreTrainedModel,
												)


else:
						import sys

						A__						=							_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)







from __future__ import annotations




def 					_lowercase     (				a_				:					int				)				->	bool:




					'''simple docstring'''







					__magic_name__							=    str(a_				)
					return len(a_				) == 9 and set(a_				) == set('123456789'				)




def 					_lowercase     (				)				->	int | None:




					'''simple docstring'''







					for base_num in range(9_9_9_9					,4_9_9_9					,-1				):
										__magic_name__							=    1_0_0_0_0_2 * base_num
										if is_9_pandigital(a_				):
															return candidate

					for base_num in range(3_3_3					,9_9					,-1				):
										__magic_name__							=    1_0_0_2_0_0_3 * base_num
										if is_9_pandigital(a_				):
															return candidate

					return None


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




