


"""simple docstring"""



import copy
import random

from transformers import CLIPTokenizer







class _lowerCAmelCase							( snake_case__      ):







   def __init__(      self		,      *UpperCamelCase__		,      **UpperCamelCase__		)      ->						Optional[int]:

       '''simple docstring'''




       super().__init__(*UpperCamelCase__		,      **UpperCamelCase__		)
       snake_case       : Optional[Any]    =       {}







   def 					lowerCamelCase						(      self		,      UpperCamelCase__		,      *UpperCamelCase__		,      **UpperCamelCase__		)      ->						List[str]:

       '''simple docstring'''




       snake_case       : int    =       super().add_tokens(UpperCamelCase__		,      *UpperCamelCase__		,      **UpperCamelCase__		)
       if num_added_tokens == 0:
           raise ValueError(
               F'The tokenizer already contains the token {placeholder_token}. Please pass a different'
               " `placeholder_token` that is not already in the tokenizer."		)







   def 					lowerCamelCase						(      self		,      UpperCamelCase__		,      *UpperCamelCase__		,      UpperCamelCase__=1		,      **UpperCamelCase__		)      ->						List[str]:

       '''simple docstring'''




       snake_case       : List[str]    =       []
       if num_vec_per_token == 1:
           self.try_adding_tokens(UpperCamelCase__		,      *UpperCamelCase__		,      **UpperCamelCase__		)
           output.append(UpperCamelCase__		)
       else:
           snake_case       : List[str]    =       []
           for i in range(UpperCamelCase__		):
               snake_case       : Optional[Any]    =       placeholder_token + F'_{i}'
               self.try_adding_tokens(UpperCamelCase__		,      *UpperCamelCase__		,      **UpperCamelCase__		)
               output.append(UpperCamelCase__		)
        # handle cases where there is a new placeholder token that contains the current placeholder token but is larger
       for token in self.token_map:
           if token in placeholder_token:
               raise ValueError(
                   F'The tokenizer already has placeholder token {token} that can get confused with'
                   F' {placeholder_token}keep placeholder tokens independent'		)
       snake_case       : Union[str, Any]    =       output







   def 					lowerCamelCase						(      self		,      UpperCamelCase__		,      UpperCamelCase__=False		,      UpperCamelCase__=1.0		)      ->						Any:

       '''simple docstring'''




       if isinstance(UpperCamelCase__		,      UpperCamelCase__		):
           snake_case       : Dict    =       []
           for i in range(len(UpperCamelCase__		)		):
               output.append(self.replace_placeholder_tokens_in_text(text[i]		,      vector_shuffle=UpperCamelCase__		)		)
           return output
       for placeholder_token in self.token_map:
           if placeholder_token in text:
               snake_case       : str    =       self.token_map[placeholder_token]
               snake_case       : int    =       tokens[: 1 + int(len(UpperCamelCase__		) * prop_tokens_to_load		)]
               if vector_shuffle:
                   snake_case       : Dict    =       copy.copy(UpperCamelCase__		)
                   random.shuffle(UpperCamelCase__		)
               snake_case       : Dict    =       text.replace(UpperCamelCase__		,      " ".join(UpperCamelCase__		)		)
       return text







   def __call__(      self		,      UpperCamelCase__		,      *UpperCamelCase__		,      UpperCamelCase__=False		,      UpperCamelCase__=1.0		,      **UpperCamelCase__		)      ->						Union[str, Any]:

       '''simple docstring'''




       return super().__call__(
           self.replace_placeholder_tokens_in_text(
               UpperCamelCase__		,      vector_shuffle=UpperCamelCase__		,      prop_tokens_to_load=UpperCamelCase__		)		,      *UpperCamelCase__		,      **UpperCamelCase__		,      )







   def 					lowerCamelCase						(      self		,      UpperCamelCase__		,      *UpperCamelCase__		,      UpperCamelCase__=False		,      UpperCamelCase__=1.0		,      **UpperCamelCase__		)      ->						Any:

       '''simple docstring'''




       return super().encode(
           self.replace_placeholder_tokens_in_text(
               UpperCamelCase__		,      vector_shuffle=UpperCamelCase__		,      prop_tokens_to_load=UpperCamelCase__		)		,      *UpperCamelCase__		,      **UpperCamelCase__		,      )












def 		_SCREAMING_SNAKE_CASE     ( lowerCAmelCase__=2_81_23						):
		lowerCamelCase_	:     Any 						=      [1] * (limit + 1)

		for i in range(2							,int(limit**0.5						) + 1						):
				sum_divs[i * i] += i
				for k in range(i + 1							,limit // i + 1						):
						sum_divs[k * i] += k + i

		lowerCamelCase_	:     List[str] 						=      set()
		lowerCamelCase_	:     List[str] 						=      0

		for n in range(1							,limit + 1						):
				if sum_divs[n] > n:
						abundants.add(lowerCAmelCase__						)

				if not any((n - a in abundants) for a in abundants						):
						res += n

		return res


if __name__ == "__main__":
		print(solution())
