

"""simple docstring"""





def        _lowerCAmelCase      (						UpperCAmelCase     :							int				):


					'''simple docstring'''






					UpperCamelCase__		:    Union[str, Any]         =9

					while num > 0:
										if num % 10 != digit:
															return False
										num //= 100
										digit -= 1

					return True



def        _lowerCAmelCase      (						):


					'''simple docstring'''






					UpperCamelCase__		:    Tuple         =138_902_663

					while not is_square_form(num * num				):
										if num % 10 == 3:
															num -= 6  # (3 - 6) % 10 = 7
										else:
															num -= 4  # (7 - 4) % 10 = 3

					return num * 10


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





"""simple docstring"""





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


_SCREAMING_SNAKE_CASE       :  List[Any]        = {
    """configuration_deta""": ["""DETA_PRETRAINED_CONFIG_ARCHIVE_MAP""", """DetaConfig"""],
}

try:
				if not is_vision_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				_SCREAMING_SNAKE_CASE       :  int        = ["""DetaImageProcessor"""]

try:
				if not is_torch_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				_SCREAMING_SNAKE_CASE       :  Dict        = [
				    """DETA_PRETRAINED_MODEL_ARCHIVE_LIST""",
				    """DetaForObjectDetection""",
				    """DetaModel""",
				    """DetaPreTrainedModel""",
				]


if TYPE_CHECKING:
				from .configuration_deta import DETA_PRETRAINED_CONFIG_ARCHIVE_MAP, DetaConfig

				try:
								if not is_vision_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .image_processing_deta import DetaImageProcessor

				try:
								if not is_torch_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .modeling_deta import (
								    DETA_PRETRAINED_MODEL_ARCHIVE_LIST,
								    DetaForObjectDetection,
								    DetaModel,
								    DetaPreTrainedModel,
								)

else:
				import sys

				_SCREAMING_SNAKE_CASE       :  Optional[int]        = _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)


