




import sys

lowercase  : Optional[int]						   =							(
    """73167176531330624919225119674426574742355349194934"""
    """96983520312774506326239578318016984801869478851843"""
    """85861560789112949495459501737958331952853208805511"""
    """12540698747158523863050715693290963295227443043557"""
    """66896648950445244523161731856403098711121722383113"""
    """62229893423380308135336276614282806444486645238749"""
    """30358907296290491560440772390713810515859307960866"""
    """70172427121883998797908792274921901699720888093776"""
    """65727333001053367881220235421809751254540594752243"""
    """52584907711670556013604839586446706324415722155397"""
    """53697817977846174064955149290862569321978468622482"""
    """83972241375657056057490261407972968652414535100474"""
    """82166370484403199890008895243450658541227588666881"""
    """16427171479924442928230863465674813919123162824586"""
    """17866458359124566529476545682848912883142607690042"""
    """24219022671055626321111109370544217506941658960408"""
    """07198403850962455444362981230987879927244284909188"""
    """84580156166097919133875499200524063689912560717606"""
    """05886116467109405077541002256983155200055935729725"""
    """71636269561882670428252483600823257530420752963450"""
)







def 						_snake_case(  SCREAMING_SNAKE_CASE__    )			->   Union[str, Any]:
       lowercase							:					Dict	     =				1
       for digit in s:
              product *= int(SCREAMING_SNAKE_CASE__    )
       return product







def 						_snake_case(  SCREAMING_SNAKE_CASE__ = N    )			->   int:
       lowercase							:					Optional[int]	     =				-sys.maxsize - 1
       lowercase							:					Optional[Any]	     =				n[:13]
       lowercase							:					Any	     =				13
       while cur_index < len(SCREAMING_SNAKE_CASE__    ) - 13:
              if int(n[cur_index]    ) >= int(substr[0]    ):
                     lowercase							:					Any	     =				substr[1:] + n[cur_index]
                     cur_index += 1
              else:
                     lowercase							:					str	     =				max(SCREAMING_SNAKE_CASE__ ,     str_eval(SCREAMING_SNAKE_CASE__    )    )
                     lowercase							:					str	     =				n[cur_index : cur_index + 13]
                     cur_index += 13
       return largest_product


if __name__ == "__main__":
  print(F'''{solution() = }''')


import unittest

from datasets import load_dataset

from transformers import BloomTokenizerFast
from transformers.testing_utils import require_tokenizers

from ...test_tokenization_common import TokenizerTesterMixin

@require_tokenizers
class __snake_case		(				lowerCAmelCase ,     unittest.TestCase					):
    _a		:						Optional[int]=    None
    _a		:						Optional[Any]=    BloomTokenizerFast
    _a		:						Tuple=    BloomTokenizerFast
    _a		:						str=    True
    _a		:						Optional[int]=    False
    _a		:						List[Any]=    "tokenizer_file"
    _a		:						List[Any]=    {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>"}
    def 				_SCREAMING_SNAKE_CASE	(  self				):



           '''simple docstring'''







           super().setUp()
           lowercase							:					Optional[Any]	     =				BloomTokenizerFast.from_pretrained("""bigscience/tokenizer"""				)
           tokenizer.save_pretrained(self.tmpdirname				)
    def 				_SCREAMING_SNAKE_CASE	(  self		,**snake_case				):



           '''simple docstring'''







           kwargs.update(self.special_tokens_map				)
           return BloomTokenizerFast.from_pretrained(self.tmpdirname		,**snake_case				)
    def 				_SCREAMING_SNAKE_CASE	(  self				):



           '''simple docstring'''







           lowercase							:					Tuple	     =				self.get_rust_tokenizer()

           lowercase							:					List[str]	     =				["""The quick brown fox</s>""", """jumps over the lazy dog</s>"""]
           lowercase							:					Optional[int]	     =				[[2175, 23714, 73173, 144252, 2], [77, 132619, 3478, 368, 109586, 35433, 2]]

           lowercase							:					Any	     =				tokenizer.batch_encode_plus(snake_case				)["""input_ids"""]
           self.assertListEqual(snake_case		,snake_case				)

           lowercase							:					Optional[int]	     =				tokenizer.batch_decode(snake_case				)
           self.assertListEqual(snake_case		,snake_case				)
    def 				_SCREAMING_SNAKE_CASE	(  self		,snake_case=6				):



           '''simple docstring'''







           for tokenizer, pretrained_name, kwargs in self.tokenizers_list:
                  with self.subTest(f"{tokenizer.__class__.__name__} ({pretrained_name})"				):
                         lowercase							:					Dict	     =				self.rust_tokenizer_class.from_pretrained(snake_case		,**snake_case				)
                         # tokenizer_r.pad_token = None # Hotfixing padding = None
                         # Simple input
                         lowercase							:					Dict	     =				"""This is a simple input"""
                         lowercase							:					Tuple	     =				["""This is a simple input 1""", """This is a simple input 2"""]
                         lowercase							:					Dict	     =				("""This is a simple input""", """This is a pair""")
                         lowercase							:					Optional[Any]	     =				[
                             ("""This is a simple input 1""", """This is a simple input 2"""),
                             ("""This is a simple pair 1""", """This is a simple pair 2"""),
                         ]

                         # Simple input tests
                         try:
                                tokenizer_r.encode(snake_case		,max_length=snake_case				)
                                tokenizer_r.encode_plus(snake_case		,max_length=snake_case				)

                                tokenizer_r.batch_encode_plus(snake_case		,max_length=snake_case				)
                                tokenizer_r.encode(snake_case		,max_length=snake_case				)
                                tokenizer_r.batch_encode_plus(snake_case		,max_length=snake_case				)
                         except ValueError:
                                self.fail("""Bloom Tokenizer should be able to deal with padding"""				)

                         lowercase							:					Optional[int]	     =				None  # Hotfixing padding = None
                         self.assertRaises(snake_case		,tokenizer_r.encode		,snake_case		,max_length=snake_case		,padding="""max_length"""				)

                         # Simple input
                         self.assertRaises(snake_case		,tokenizer_r.encode_plus		,snake_case		,max_length=snake_case		,padding="""max_length"""				)

                         # Simple input
                         self.assertRaises(
                             snake_case		,tokenizer_r.batch_encode_plus		,snake_case		,max_length=snake_case		,padding="""max_length"""		,)

                         # Pair input
                         self.assertRaises(snake_case		,tokenizer_r.encode		,snake_case		,max_length=snake_case		,padding="""max_length"""				)

                         # Pair input
                         self.assertRaises(snake_case		,tokenizer_r.encode_plus		,snake_case		,max_length=snake_case		,padding="""max_length"""				)

                         # Pair input
                         self.assertRaises(
                             snake_case		,tokenizer_r.batch_encode_plus		,snake_case		,max_length=snake_case		,padding="""max_length"""		,)
    def 				_SCREAMING_SNAKE_CASE	(  self				):



           '''simple docstring'''







           lowercase							:					List[Any]	     =				self.get_rust_tokenizer()
           lowercase							:					List[str]	     =				load_dataset("""xnli"""		,"""all_languages"""		,split="""test"""		,streaming=snake_case				)

           lowercase							:					Optional[Any]	     =				next(iter(snake_case				)				)["""premise"""]  # pick up one data
           lowercase							:					str	     =				list(sample_data.values()				)

           lowercase							:					Optional[int]	     =				list(map(tokenizer.encode		,snake_case				)				)
           lowercase							:					Dict	     =				[tokenizer.decode(snake_case		,clean_up_tokenization_spaces=snake_case				) for x in output_tokens]
           self.assertListEqual(snake_case		,snake_case				)
    def 				_SCREAMING_SNAKE_CASE	(  self				):



           '''simple docstring'''







           self.assertGreaterEqual(len(self.tokenizer_class.pretrained_vocab_files_map				)		,1				)
           self.assertGreaterEqual(len(list(self.tokenizer_class.pretrained_vocab_files_map.values()				)[0]				)		,1				)
