


'''simple docstring'''



def 			UpperCAmelCase__					(	UpperCAmelCase_    :				int      ,    UpperCAmelCase_    :				int							)     ->		int:
     return abs(UpperCAmelCase_							) if a == 0 else greatest_common_divisor(b % a      ,    UpperCAmelCase_							)



def 			UpperCAmelCase__					(	UpperCAmelCase_    :				int      ,    UpperCAmelCase_    :				int							)     ->		int:
     while y:  # --> when y=0 then loop will terminate and return x as final GCD.
          __lowerCamelCase				,       __lowerCamelCase   :	Optional[Any]								=		y, x % y
     return abs(UpperCAmelCase_							)



def 			UpperCAmelCase__					(	)     ->		List[str]:
     try:
          __lowerCamelCase   :	List[Any]								=		input('Enter two integers separated by comma (,): '							).split(','							)
          __lowerCamelCase   :	Optional[int]								=		int(nums[0]							)
          __lowerCamelCase   :	List[Any]								=		int(nums[1]							)
          print(
              F'greatest_common_divisor({num_a}, {num_a}) = '
              F'{greatest_common_divisor(UpperCAmelCase_      ,    UpperCAmelCase_							)}'							)
          print(F'By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(UpperCAmelCase_      ,    UpperCAmelCase_							)}'							)
     except (IndexError, UnboundLocalError, ValueError):
          print('Wrong input'							)


if __name__ == "__main__":
      main()










'''simple docstring'''



from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


A__		:					List[Any]												=  {
    """configuration_megatron_bert""": ["""MEGATRON_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP""", """MegatronBertConfig"""],
}

try:
      if not is_torch_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      A__		:					int												=  [
          """MEGATRON_BERT_PRETRAINED_MODEL_ARCHIVE_LIST""",
          """MegatronBertForCausalLM""",
          """MegatronBertForMaskedLM""",
          """MegatronBertForMultipleChoice""",
          """MegatronBertForNextSentencePrediction""",
          """MegatronBertForPreTraining""",
          """MegatronBertForQuestionAnswering""",
          """MegatronBertForSequenceClassification""",
          """MegatronBertForTokenClassification""",
          """MegatronBertModel""",
          """MegatronBertPreTrainedModel""",
      ]

if TYPE_CHECKING:
      from .configuration_megatron_bert import MEGATRON_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP, MegatronBertConfig

      try:
            if not is_torch_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .modeling_megatron_bert import (
                MEGATRON_BERT_PRETRAINED_MODEL_ARCHIVE_LIST,
                MegatronBertForCausalLM,
                MegatronBertForMaskedLM,
                MegatronBertForMultipleChoice,
                MegatronBertForNextSentencePrediction,
                MegatronBertForPreTraining,
                MegatronBertForQuestionAnswering,
                MegatronBertForSequenceClassification,
                MegatronBertForTokenClassification,
                MegatronBertModel,
                MegatronBertPreTrainedModel,
            )

else:
      import sys

      A__		:					List[Any]												=  _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)






