
from __future__ import annotations

import sys




def 							__SCREAMING_SNAKE_CASE       (		SCREAMING_SNAKE_CASE	:				int   ,							SCREAMING_SNAKE_CASE	:				int      )					->						tuple[int, int]:
				# base cases
				if abs(SCREAMING_SNAKE_CASE      ) == 1:
								return a, 0
				elif abs(SCREAMING_SNAKE_CASE      ) == 1:
								return 0, b

				__lowercase		, __lowercase								= a, b
				__lowercase		, __lowercase								= 1, 0
				__lowercase		, __lowercase								= 0, 1

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

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

				return old_coeff_a, old_coeff_b




def 							__SCREAMING_SNAKE_CASE       (		)					->						Optional[Any]:
				if len(sys.argv      ) < 3:
								print('2 integer arguments required'      )
								return 1
				__lowercase								= int(sys.argv[1]      )
				__lowercase								= int(sys.argv[2]      )
				print(extended_euclidean_algorithm(SCREAMING_SNAKE_CASE   ,							SCREAMING_SNAKE_CASE      )      )
				return 0


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







from math import pi




def 							__SCREAMING_SNAKE_CASE       (		SCREAMING_SNAKE_CASE	:				float      )					->						float:
				return degree / (180 / pi)


if __name__ == "__main__":
							from doctest import testmod

							testmod()





