






"""simple docstring"""
def 							A						(				__snake_case: int  )    ->		int:

       """simple docstring"""





       if not isinstance(__snake_case ,     __snake_case  ):
              raise ValueError('multiplicative_persistence() only accepts integral values'  )
       if num < 0:
              raise ValueError('multiplicative_persistence() does not accept negative values'  )

       __magic_name__      				=    0
       __magic_name__      				=    str(__snake_case  )

       while len(__snake_case  ) != 1:
              __magic_name__      				=    [int(__snake_case  ) for i in num_string]

              __magic_name__      				=    1
              for i in range(0 ,     len(__snake_case  )  ):
                     total *= numbers[i]

              __magic_name__      				=    str(__snake_case  )

              steps += 1
       return steps


def 							A						(				__snake_case: int  )    ->		int:

       """simple docstring"""





       if not isinstance(__snake_case ,     __snake_case  ):
              raise ValueError('additive_persistence() only accepts integral values'  )
       if num < 0:
              raise ValueError('additive_persistence() does not accept negative values'  )

       __magic_name__      				=    0
       __magic_name__      				=    str(__snake_case  )

       while len(__snake_case  ) != 1:
              __magic_name__      				=    [int(__snake_case  ) for i in num_string]

              __magic_name__      				=    0
              for i in range(0 ,     len(__snake_case  )  ):
                     total += numbers[i]

              __magic_name__      				=    str(__snake_case  )

              steps += 1
       return steps


if __name__ == "__main__":
 import doctest

 doctest.testmod()







"""simple docstring"""
from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_sentencepiece_available,
    is_tokenizers_available,
    is_torch_available,
)


snake_case : int     		=		{}

try:
 if not is_sentencepiece_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 snake_case : str     		=		["""NllbTokenizer"""]

try:
 if not is_tokenizers_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 snake_case : Dict     		=		["""NllbTokenizerFast"""]


if TYPE_CHECKING:
 try:
  if not is_sentencepiece_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .tokenization_nllb import NllbTokenizer

 try:
  if not is_tokenizers_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .tokenization_nllb_fast import NllbTokenizerFast

else:
 import sys

 snake_case : Dict     		=		_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)