


def 						_UpperCAmelCase    (      SCREAMING_SNAKE_CASE__      : int      ,					SCREAMING_SNAKE_CASE__      : int    ):
     return abs(SCREAMING_SNAKE_CASE__    ) if a == 0 else greatest_common_divisor(b % a      ,					SCREAMING_SNAKE_CASE__    )

def 						_UpperCAmelCase    (      SCREAMING_SNAKE_CASE__      : int      ,					SCREAMING_SNAKE_CASE__      : int    ):
     while y:  # --> when y=0 then loop will terminate and return x as final GCD.
          __UpperCamelCase							,				__UpperCamelCase   							=y, x % y
     return abs(SCREAMING_SNAKE_CASE__    )

def 						_UpperCAmelCase    (      ):
     try:
          __UpperCamelCase   							=input('Enter two integers separated by comma (,): '    ).split(','    )
          __UpperCamelCase   							=int(nums[0]    )
          __UpperCamelCase   							=int(nums[1]    )
          print(
              F'greatest_common_divisor({num_a}, {num_a}) = '
              F'{greatest_common_divisor(SCREAMING_SNAKE_CASE__      ,					SCREAMING_SNAKE_CASE__    )}'    )
          print(F'By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(SCREAMING_SNAKE_CASE__      ,					SCREAMING_SNAKE_CASE__    )}'    )
     except (IndexError, UnboundLocalError, ValueError):
          print('Wrong input'    )


if __name__ == "__main__":
   main()









from ..utils import DummyObject, requires_backends






class    UpperCAmelCase__	( metaclass=A_		):



    """simple docstring"""






    UpperCAmelCase__						:		Any              =  ["speech"]






    def __init__(      self ,       *A_ ,       **A_   )  ->	Any:
         requires_backends(self ,       ['speech']   )






class    UpperCAmelCase__	( metaclass=A_		):



    """simple docstring"""






    UpperCAmelCase__						:		Union[str, Any]              =  ["speech"]






    def __init__(      self ,       *A_ ,       **A_   )  ->	Union[str, Any]:
         requires_backends(self ,       ['speech']   )





