

from __future__ import annotations

import sys




def        lowerCAmelCase(	SCREAMING_SNAKE_CASE_       ,		SCREAMING_SNAKE_CASE_       )->		tuple[int, int]:



    """simple docstring"""






    if abs(SCREAMING_SNAKE_CASE_       ) == 1:
        return a, 0
    elif abs(SCREAMING_SNAKE_CASE_       ) == 1:
        return 0, b

    UpperCamelCase_   ,    UpperCamelCase_          =		a, b
    UpperCamelCase_   ,    UpperCamelCase_          =		1, 0
    UpperCamelCase_   ,    UpperCamelCase_          =		0, 1

    while remainder != 0:
        UpperCamelCase_          =		old_remainder // remainder
        UpperCamelCase_   ,    UpperCamelCase_          =		remainder, old_remainder - quotient * remainder
        UpperCamelCase_   ,    UpperCamelCase_          =		coeff_a, old_coeff_a - quotient * coeff_a
        UpperCamelCase_   ,    UpperCamelCase_          =		coeff_b, old_coeff_b - quotient * coeff_b

    # sign correction for negative numbers
    if a < 0:
        UpperCamelCase_          =		-old_coeff_a
    if b < 0:
        UpperCamelCase_          =		-old_coeff_b

    return old_coeff_a, old_coeff_b




def        lowerCAmelCase(	)->		List[str]:



    """simple docstring"""






    if len(sys.argv       ) < 3:
        print("2 integer arguments required"       )
        return 1
    UpperCamelCase_          =		int(sys.argv[1]       )
    UpperCamelCase_          =		int(sys.argv[2]       )
    print(extended_euclidean_algorithm(SCREAMING_SNAKE_CASE_       ,		SCREAMING_SNAKE_CASE_       )       )
    return 0


if __name__ == "__main__":
 raise SystemExit(main())



from typing import TYPE_CHECKING

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


SCREAMING_SNAKE_CASE						:int      =			{"""configuration_yoso""": ["""YOSO_PRETRAINED_CONFIG_ARCHIVE_MAP""", """YosoConfig"""]}

try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 SCREAMING_SNAKE_CASE						:List[Any]      =			[
     """YOSO_PRETRAINED_MODEL_ARCHIVE_LIST""",
     """YosoForMaskedLM""",
     """YosoForMultipleChoice""",
     """YosoForQuestionAnswering""",
     """YosoForSequenceClassification""",
     """YosoForTokenClassification""",
     """YosoLayer""",
     """YosoModel""",
     """YosoPreTrainedModel""",
 ]


if TYPE_CHECKING:
 from .configuration_yoso import YOSO_PRETRAINED_CONFIG_ARCHIVE_MAP, YosoConfig

 try:
  if not is_torch_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_yoso import (
      YOSO_PRETRAINED_MODEL_ARCHIVE_LIST,
      YosoForMaskedLM,
      YosoForMultipleChoice,
      YosoForQuestionAnswering,
      YosoForSequenceClassification,
      YosoForTokenClassification,
      YosoLayer,
      YosoModel,
      YosoPreTrainedModel,
  )


else:
 import sys

 SCREAMING_SNAKE_CASE						:str      =			_LazyModule(__name__, globals()["""__file__"""], _import_structure)
