





def      A__       (    SCREAMING_SNAKE_CASE_   :      int						)  ->  int:






   """simple docstring"""







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

   _UpperCAmelCase           =   0
   _UpperCAmelCase           =   str(SCREAMING_SNAKE_CASE_						)

   while len(SCREAMING_SNAKE_CASE_						) != 1:
      _UpperCAmelCase           =   [int(SCREAMING_SNAKE_CASE_						) for i in num_string]

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

      _UpperCAmelCase           =   str(SCREAMING_SNAKE_CASE_						)

      steps += 1
   return steps
def      A__       (    SCREAMING_SNAKE_CASE_   :      int						)  ->  int:






   """simple docstring"""







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

   _UpperCAmelCase           =   0
   _UpperCAmelCase           =   str(SCREAMING_SNAKE_CASE_						)

   while len(SCREAMING_SNAKE_CASE_						) != 1:
      _UpperCAmelCase           =   [int(SCREAMING_SNAKE_CASE_						) for i in num_string]

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

      _UpperCAmelCase           =   str(SCREAMING_SNAKE_CASE_						)

      steps += 1
   return steps


if __name__ == "__main__":
   import doctest

   doctest.testmod()



"""simple docstring"""



from diffusers.utils.testing_utils import require_onnxruntime







@require_onnxruntime
class    __a						:
				pass