
'''simple docstring'''





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

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

						snake_case,       snake_case							:  List[Any]			=     divmod(A_     ,				10**ma							)
						snake_case,       snake_case							:  Any			=     divmod(A_     ,				10**ma							)

						snake_case							:  str			=     karatsuba(A_     ,				A_							)
						snake_case							:  Optional[Any]			=     karatsuba((aa + aa)     ,				(ba + ba)							)
						snake_case							:  List[Any]			=     karatsuba(A_     ,				A_							)

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

def   A			(							):
						print(karatsuba(15463     ,				23489							)							)


if __name__ == "__main__":
						main()



'''simple docstring'''

from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__UpperCAmelCase												=   {'configuration_sew_d': ['SEW_D_PRETRAINED_CONFIG_ARCHIVE_MAP', 'SEWDConfig']}

try:
   if not is_torch_available():
      raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
   pass
else:
   __UpperCAmelCase												=   [
       'SEW_D_PRETRAINED_MODEL_ARCHIVE_LIST',
       'SEWDForCTC',
       'SEWDForSequenceClassification',
       'SEWDModel',
       'SEWDPreTrainedModel',
   ]

if TYPE_CHECKING:
   from .configuration_sew_d import SEW_D_PRETRAINED_CONFIG_ARCHIVE_MAP, SEWDConfig

   try:
      if not is_torch_available():
         raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
      pass
   else:
      from .modeling_sew_d import (
          SEW_D_PRETRAINED_MODEL_ARCHIVE_LIST,
          SEWDForCTC,
          SEWDForSequenceClassification,
          SEWDModel,
          SEWDPreTrainedModel,
      )


else:
   import sys

   __UpperCAmelCase												=   _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)


