

from __future__ import annotations






def    __lowercase (       _A     )       ->  int | None:
      for r in range(1  ,      _A     ):
            SCREAMING_SNAKE_CASE	: Dict					       =				[]
            for x in range(n - 1     ):
                  SCREAMING_SNAKE_CASE	: Dict					       =				pow(_A  ,      _A  ,      _A     )
                  if val in li:
                        break
                  li.append(_A     )
            else:
                  return r
      return None


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

    UpperCAmelCase__	:       int			      =      pow(b_public, a_private, q)
    UpperCAmelCase__	:       str			      =      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)







UpperCAmelCase__	:       Union[str, Any]			      =      """
# Installation de Transformers
! pip install transformers datasets
# Pour installer à partir du code source au lieu de la dernière version, commentez la commande ci-dessus et décommentez la suivante.
# ! pip install git+https://github.com/huggingface/transformers.git
"""

UpperCAmelCase__	:       List[Any]			      =      [{"""type""": """code""", """content""": INSTALL_CONTENT}]
UpperCAmelCase__	:       List[Any]			      =      {
    """{processor_class}""": """FakeProcessorClass""",
    """{model_class}""": """FakeModelClass""",
    """{object_class}""": """FakeObjectClass""",
}




