




"""simple docstring"""

from __future__ import annotations

import sys

def 						lowercase_ (						_UpperCAmelCase					, _UpperCAmelCase		):




	"""simple docstring"""






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

	A_				,	A_					:			List[Any]						=						a, b
	A_				,	A_					:			int						=						1, 0
	A_				,	A_					:			Optional[Any]						=						0, 1

	while remainder != 0:
		A_					:			str						=						old_remainder // remainder
		A_				,	A_					:			Optional[Any]						=						remainder, old_remainder - quotient * remainder
		A_				,	A_					:			str						=						coeff_a, old_coeff_a - quotient * coeff_a
		A_				,	A_					:			List[str]						=						coeff_b, old_coeff_b - quotient * coeff_b

	# sign correction for negative numbers
	if a < 0:
		A_					:			Dict						=						-old_coeff_a
	if b < 0:
		A_					:			Optional[int]						=						-old_coeff_b

	return old_coeff_a, old_coeff_b

def 						lowercase_ (						):




	"""simple docstring"""






	if len(sys.argv		) < 3:
		print('''2 integer arguments required'''		)
		return 1
	A_					:			Dict						=						int(sys.argv[1]		)
	A_					:			Union[str, Any]						=						int(sys.argv[2]		)
	print(extended_euclidean_algorithm(_UpperCAmelCase					, _UpperCAmelCase		)		)
	return 0


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











"""simple docstring"""

def 						lowercase_ (						_UpperCAmelCase		):




	"""simple docstring"""






	A_					:			Optional[int]						=						9

	while num > 0:
		if num % 10 != digit:
			return False
		num //= 100
		digit -= 1

	return True

def 						lowercase_ (						):




	"""simple docstring"""






	A_					:			Dict						=						1_3890_2663

	while not is_square_form(num * num		):
		if num % 10 == 3:
			num -= 6  # (3 - 6) % 10 = 7
		else:
			num -= 4  # (7 - 4) % 10 = 3

	return num * 10


if __name__ == "__main__":
		print(f'{solution() = }')





