
"""simple docstring"""

def 		lowercase_      (		_UpperCAmelCase  ,      _UpperCAmelCase	):




	"""simple docstring"""






	return abs(lowerCAmelCase__	) if a == 0 else greatest_common_divisor(b % a  ,      lowerCAmelCase__	)

def 		lowercase_      (		_UpperCAmelCase  ,      _UpperCAmelCase	):




	"""simple docstring"""






	while y:  # --> when y=0 then loop will terminate and return x as final GCD.
		A_   , A_  :				List[str]	   =		y, x % y
	return abs(lowerCAmelCase__	)

def 		lowercase_      (		):




	"""simple docstring"""






	try:
		A_  :				Tuple	   =		input('''Enter two integers separated by comma (,): '''	).split(''','''	)
		A_  :				List[Any]	   =		int(nums[0]	)
		A_  :				List[str]	   =		int(nums[1]	)
		print(
		    f"""greatest_common_divisor({num_a}, {num_a}) = """
		    f"""{greatest_common_divisor(lowerCAmelCase__  ,      lowerCAmelCase__	)}"""	)
		print(f"""By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(lowerCAmelCase__  ,      lowerCAmelCase__	)}"""	)
	except (IndexError, UnboundLocalError, ValueError):
		print('''Wrong input'''	)


if __name__ == "__main__":
		main()











"""simple docstring"""

def 		lowercase_      (		_UpperCAmelCase	):




	"""simple docstring"""






	A_  :				int	   =		len(_UpperCAmelCase	)
	for i in range(length - 1	):
		A_  :				str	   =		i
		for k in range(i + 1  ,      _UpperCAmelCase	):
			if collection[k] < collection[least]:
				A_  :				Tuple	   =		k
		if least != i:
			A_   , A_  :				Optional[int]	   =		(collection[i], collection[least])
	return collection


if __name__ == "__main__":
		_lowerCamelCase  :			Optional[int]        =       input('Enter numbers separated by a comma:\n').strip()
		_lowerCamelCase  :			List[str]        =       [int(item) for item in user_input.split(',')]
		print(selection_sort(unsorted))





