
from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_torch_available,
)


_lowerCamelCase :       List[Any]     					=    {
    '''configuration_gptsan_japanese''': ['''GPTSAN_JAPANESE_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''GPTSanJapaneseConfig'''],
    '''tokenization_gptsan_japanese''': ['''GPTSanJapaneseTokenizer'''],
}

try:
			if not is_torch_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			_lowerCamelCase :       Dict     					=    [
			    '''GPTSAN_JAPANESE_PRETRAINED_MODEL_ARCHIVE_LIST''',
			    '''GPTSanJapaneseForConditionalGeneration''',
			    '''GPTSanJapaneseModel''',
			    '''GPTSanJapanesePreTrainedModel''',
			]
			_lowerCamelCase :       Tuple     					=    [
			    '''GPTSanJapaneseTokenizer''',
			]


if TYPE_CHECKING:
			from .configuration_gptsan_japanese import GPTSAN_JAPANESE_PRETRAINED_CONFIG_ARCHIVE_MAP, GPTSanJapaneseConfig
			from .tokenization_gptsan_japanese import GPTSanJapaneseTokenizer

			try:
						if not is_torch_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .modeling_gptsan_japanese import (
						    GPTSAN_JAPANESE_PRETRAINED_MODEL_ARCHIVE_LIST,
						    GPTSanJapaneseForConditionalGeneration,
						    GPTSanJapaneseModel,
						    GPTSanJapanesePreTrainedModel,
						)
						from .tokenization_gptsan_japanese import GPTSanJapaneseTokenizer


else:
			import sys

			_lowerCamelCase :       str     					=    _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)

def  a_	( __lowercase     :			int				)				->						bool:
			_snake_case						=    9

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

			return True






def  a_	( )				->						int:
			_snake_case						=    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() = }')