


from __future__ import annotations
def 							_UpperCAmelCase    (UpperCamelCase__					:  int						):
       for r in range(1    ,							UpperCamelCase__						):
              _A				:	Optional[Any]       =			[]
              for x in range(n - 1						):
                     _A				:	str       =			pow(UpperCamelCase__    ,							UpperCamelCase__    ,							UpperCamelCase__						)
                     if val in li:
                            break
                     li.append(UpperCamelCase__						)
              else:
                     return r
       return None


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

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




import warnings

from .generation import FlaxGenerationMixin







class 					lowerCAmelCase__	(    a):




     '''simple docstring'''
     # warning at import time
     warnings.warn(
         "Importing `FlaxGenerationMixin` from `src/transformers/generation_flax_utils.py` is deprecated and will "
         "be removed in Transformers v5. Import as `from transformers import FlaxGenerationMixin` instead."					,   a					,   )
