






import unittest
import warnings
from dataclasses import dataclass

from transformers.convert_slow_tokenizer import SpmConverter
from transformers.testing_utils import get_tests_dir




@dataclass
class 			UpperCamelCase_				:



	'''simple docstring'''




	lowerCAmelCase													=			42






class 			UpperCamelCase_				(      unittest.TestCase    ):



	'''simple docstring'''




	def 							_UpperCamelCase      (	self )	->   int:
								snake_case_           =							get_tests_dir('fixtures/test_sentencepiece.model' )
								snake_case_           =							get_tests_dir('fixtures/test_sentencepiece_with_bytefallback.model' )

								snake_case_           =							FakeOriginalTokenizer(vocab_file=a )

								with warnings.catch_warnings(record=a ) as w:
															snake_case_           =							SpmConverter(a )
								self.assertEqual(len(a )	,      0 )

								snake_case_           =							FakeOriginalTokenizer(vocab_file=a )

								with warnings.catch_warnings(record=a ) as w:
															snake_case_           =							SpmConverter(a )
								self.assertEqual(len(a )	,      1 )

								self.assertIn(
								    'The sentencepiece tokenizer that you are converting to a fast tokenizer uses the byte fallback option'
								    ' which is not implemented in the fast tokenizers.'	,      str(w[0].message )	,      )













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)





