"""simple docstring"""






import sys



def     a_		(   lowerCamelCase   ,     lowerCamelCase			):
				if not numbers:
								return 0
				if target == 0 and target in numbers:
								return 0
				if not isinstance(_lowercase   ,     (list, tuple)			) or not all(
				    isinstance(_lowercase   ,     _lowercase			) for number in numbers			):
								raise ValueError('numbers must be an iterable of integers'			)

				UpperCAmelCase__			 =				0
				UpperCAmelCase__			 =				sys.maxsize

				while right < len(_lowercase			):
								curr_sum += numbers[right]
								while curr_sum >= target and left <= right:
												UpperCAmelCase__			 =				min(_lowercase   ,     right - left + 1			)
												curr_sum -= numbers[left]
												left += 1
								right += 1

				return 0 if min_len == sys.maxsize else min_len








'''simple docstring'''




from __future__ import annotations



def  __lowerCamelCase    (   _lowercase						) ->     int | None:
							for r in range(1      ,							_lowercase						):
														UpperCAmelCase	:						Dict					=						[]
														for x in range(n - 1						):
																					UpperCAmelCase	:						List[str]					=						pow(_lowercase      ,							_lowercase      ,							_lowercase						)
																					if val in li:
																												break
																					li.append(_lowercase						)
														else:
																					return r
							return None


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

														a  :     Union[str, Any]       =       pow(b_public, a_private, q)
														a  :     List[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)

