


"""simple docstring"""



from __future__ import annotations
def     UpperCAmelCase    (					_lowercase   :      int  )	->   int | None:


	"""simple docstring"""




	for r in range(1 ,      _lowercase  ):
		lowerCAmelCase_			       = []
		for x in range(n - 1  ):
			lowerCAmelCase_			       = pow(_lowercase ,      _lowercase ,      _lowercase  )
			if val in li:
				break
			li.append(_lowercase  )
		else:
			return r
	return None


if __name__ == "__main__":
		lowercase_     :   List[Any]							 =       int(input('Enter a prime number q: '))
		lowercase_     :   Tuple							 =       find_primitive(q)
		if a is None:
				print(f"""Cannot find the primitive for the value: {a!r}""")
		else:
				lowercase_     :   Optional[int]							 =       int(input('Enter private key of A: '))
				lowercase_     :   Union[str, Any]							 =       pow(a, a_private, q)
				lowercase_     :   str							 =       int(input('Enter private key of B: '))
				lowercase_     :   Tuple							 =       pow(a, b_private, q)

				lowercase_     :   int							 =       pow(b_public, a_private, q)
				lowercase_     :   Optional[Any]							 =       pow(a_public, b_private, q)

				print('The key value generated by A is: ', a_secret)
				print('The key value generated by B is: ', b_secret)



"""simple docstring"""



lowercase_							 =       [0.485, 0.456, 0.406]
lowercase_							 =       [0.229, 0.224, 0.225]
lowercase_							 =       [0.5, 0.5, 0.5]
lowercase_							 =       [0.5, 0.5, 0.5]
lowercase_							 =       [0.4814_5466, 0.457_8275, 0.4082_1073]
lowercase_							 =       [0.2686_2954, 0.2613_0258, 0.2757_7711]