

"""simple docstring"""





def 						__SCREAMING_SNAKE_CASE						(   A_		,  A_				):
	if len(str(A_				)				) == 1 or len(str(A_				)				) == 1:
		return a * b

	lowerCAmelCase__			:		Tuple						       =			max(len(str(A_				)				)		,  len(str(A_				)				)				)
	lowerCAmelCase__			:		List[Any]						       =			ma // 2

	lowerCAmelCase__       ,lowerCAmelCase__			:		int						       =			divmod(A_		,  10**ma				)
	lowerCAmelCase__       ,lowerCAmelCase__			:		Union[str, Any]						       =			divmod(A_		,  10**ma				)

	lowerCAmelCase__			:		int						       =			karatsuba(A_		,  A_				)
	lowerCAmelCase__			:		Union[str, Any]						       =			karatsuba((aa + aa)		,  (ba + ba)				)
	lowerCAmelCase__			:		Optional[int]						       =			karatsuba(A_		,  A_				)

	return (z * 10 ** (2 * ma)) + ((y - z - x) * 10 ** (ma)) + (x)

def 						__SCREAMING_SNAKE_CASE						(   ):
	print(karatsuba(1_54_63		,  2_34_89				)				)


if __name__ == "__main__":
							main()







"""simple docstring"""





from typing import TYPE_CHECKING

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


__UpperCamelCase						:   Union[str, Any]							   =	{
    '''configuration_layoutlm''': ['''LAYOUTLM_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''LayoutLMConfig''', '''LayoutLMOnnxConfig'''],
    '''tokenization_layoutlm''': ['''LayoutLMTokenizer'''],
}

try:
							if not is_tokenizers_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							__UpperCamelCase						:   Union[str, Any]							   =	['''LayoutLMTokenizerFast''']

try:
							if not is_torch_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							__UpperCamelCase						:   Dict							   =	[
							    '''LAYOUTLM_PRETRAINED_MODEL_ARCHIVE_LIST''',
							    '''LayoutLMForMaskedLM''',
							    '''LayoutLMForSequenceClassification''',
							    '''LayoutLMForTokenClassification''',
							    '''LayoutLMForQuestionAnswering''',
							    '''LayoutLMModel''',
							    '''LayoutLMPreTrainedModel''',
							]

try:
							if not is_tf_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							__UpperCamelCase						:   str							   =	[
							    '''TF_LAYOUTLM_PRETRAINED_MODEL_ARCHIVE_LIST''',
							    '''TFLayoutLMForMaskedLM''',
							    '''TFLayoutLMForSequenceClassification''',
							    '''TFLayoutLMForTokenClassification''',
							    '''TFLayoutLMForQuestionAnswering''',
							    '''TFLayoutLMMainLayer''',
							    '''TFLayoutLMModel''',
							    '''TFLayoutLMPreTrainedModel''',
							]


if TYPE_CHECKING:
							from .configuration_layoutlm import LAYOUTLM_PRETRAINED_CONFIG_ARCHIVE_MAP, LayoutLMConfig, LayoutLMOnnxConfig
							from .tokenization_layoutlm import LayoutLMTokenizer

							try:
														if not is_tokenizers_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .tokenization_layoutlm_fast import LayoutLMTokenizerFast

							try:
														if not is_torch_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_layoutlm import (
														    LAYOUTLM_PRETRAINED_MODEL_ARCHIVE_LIST,
														    LayoutLMForMaskedLM,
														    LayoutLMForQuestionAnswering,
														    LayoutLMForSequenceClassification,
														    LayoutLMForTokenClassification,
														    LayoutLMModel,
														    LayoutLMPreTrainedModel,
														)
							try:
														if not is_tf_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_tf_layoutlm import (
														    TF_LAYOUTLM_PRETRAINED_MODEL_ARCHIVE_LIST,
														    TFLayoutLMForMaskedLM,
														    TFLayoutLMForQuestionAnswering,
														    TFLayoutLMForSequenceClassification,
														    TFLayoutLMForTokenClassification,
														    TFLayoutLMMainLayer,
														    TFLayoutLMModel,
														    TFLayoutLMPreTrainedModel,
														)

else:
							import sys

							__UpperCamelCase						:   int							   =	_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)




