




"""simple docstring"""
from __future__ import annotations






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


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

        _SCREAMING_SNAKE_CASE						 =     pow(b_public, a_private, q)
        _SCREAMING_SNAKE_CASE						 =     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"""
import platform
from argparse import ArgumentParser

import huggingface_hub
import pandas
import pyarrow

from datasets import __version__ as version
from datasets.commands import BaseDatasetsCLICommand






def 				__lowerCAmelCase					(					__lowerCAmelCase			:		Union[str, Any]						)    ->       int:
 return EnvironmentCommand()







class  _SCREAMING_SNAKE_CASE       (     SCREAMING_SNAKE_CASE__				):



 '''simple docstring'''





 @staticmethod
 def lowercase_      (lowerCAmelCase__   ):

  '''simple docstring'''







  _UpperCamelCase      :	Optional[Any]					      =  parser.add_parser("env"					,     help="Print relevant system environment info."   )
  download_parser.set_defaults(func=lowerCAmelCase__   )






 def lowercase_      (self   ):

  '''simple docstring'''







  _UpperCamelCase      :	Any					      =  {
      "`datasets` version": version,
      "Platform": platform.platform(),
      "Python version": platform.python_version(),
      "Huggingface_hub version": huggingface_hub.__version__,
      "PyArrow version": pyarrow.__version__,
      "Pandas version": pandas.__version__,
  }

  print("\nCopy-and-paste the text below in your GitHub issue.\n"   )
  print(self.format_dict(lowerCAmelCase__   )   )

  return info






 @staticmethod
 def lowercase_      (lowerCAmelCase__   ):

  '''simple docstring'''







  return "\n".join([F"- {prop}: {val}" for prop, val in d.items()]   ) + "\n"



