"""simple docstring"""







SCREAMING_SNAKE_CASE						=    [0.485, 0.456, 0.406]
SCREAMING_SNAKE_CASE						=    [0.229, 0.224, 0.225]
SCREAMING_SNAKE_CASE						=    [0.5, 0.5, 0.5]
SCREAMING_SNAKE_CASE						=    [0.5, 0.5, 0.5]
SCREAMING_SNAKE_CASE						=    [0.48145466, 0.4578275, 0.40821073]
SCREAMING_SNAKE_CASE						=    [0.26862954, 0.26130258, 0.27577711]




"""simple docstring"""







from __future__ import annotations

import math
import random


def   __lowerCAmelCase(		__UpperCAmelCase  ,__UpperCAmelCase  ,__UpperCAmelCase      ):






	"""simple docstring"""





	_lowercase			:     Optional[int]      					=				d * e - 1
	_lowercase			:     int      					=				0
	_lowercase			:     Union[str, Any]      					=				0
	while p == 0:
		_lowercase			:     int      					=				random.randint(2  ,n - 1      )
		_lowercase			:     str      					=				k
		while True:
			if t % 2 == 0:
				_lowercase			:     List[Any]      					=				t // 2
				_lowercase			:     int      					=				(g**t) % n
				_lowercase			:     Tuple      					=				math.gcd(x - 1  ,__UpperCAmelCase      )
				if x > 1 and y > 1:
					_lowercase			:     List[str]      					=				y
					_lowercase			:     str      					=				n // y
					break  # find the correct factors
			else:
				break  # t is not divisible by 2, break and choose another g
	return sorted([p, q]      )


if __name__ == "__main__":
						import doctest

						doctest.testmod()



