






import math





def 						__UpperCAmelCase      (					a_):
							snake_case_           =							math.log(2							,					10) * number
							snake_case_           =							round((log_number - int(a_))							,					15)

							return difference





def 						__UpperCAmelCase      (					a_ = 67_89_10):
							snake_case_           =							90
							snake_case_           =							0

							snake_case_           =							math.log(1.23							,					10)
							snake_case_           =							math.log(1.24							,					10)
							snake_case_           =							0

							while position < number:
														snake_case_           =							log_difference(a_)

														if difference >= upper_limit:
																					power_iterator += 93

														elif difference < lower_limit:
																					power_iterator += 1_96

														else:
																					snake_case_           =							power_iterator
																					power_iterator += 1_96
																					position += 1

							return previous_power


if __name__ == "__main__":
	import doctest

	doctest.testmod()

	print(f'{solution() = }')













from __future__ import annotations





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


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

		lowercase  							= pow(b_public, a_private, q)
		lowercase  							= 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)





