"""simple docstring"""







from __future__ import annotations

import math
import random
def     __UpperCAmelCase							(       UpperCAmelCase_       :							int     ,				UpperCAmelCase_       :							int     ,				UpperCAmelCase_       :							int    )				->     list[int]:

	'''simple docstring'''





	__snake_case     :				Tuple 						=					d * e - 1
	__snake_case     :				Union[str, Any] 						=					0
	__snake_case     :				Optional[int] 						=					0
	while p == 0:
		__snake_case     :				Union[str, Any] 						=					random.randint(2     ,				n - 1    )
		__snake_case     :				int 						=					k
		while True:
			if t % 2 == 0:
				__snake_case     :				Tuple 						=					t // 2
				__snake_case     :				Dict 						=					(g**t) % n
				__snake_case     :				Optional[Any] 						=					math.gcd(x - 1     ,				UpperCAmelCase_    )
				if x > 1 and y > 1:
					__snake_case     :				List[str] 						=					y
					__snake_case     :				List[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()






"""simple docstring"""







def     __UpperCAmelCase							(       UpperCAmelCase_       :							str    )				->     str:

	'''simple docstring'''





	return " ".join(sorted(set(sentence.split()    )    )    )


if __name__ == "__main__":
	import doctest

	doctest.testmod()





