



def 							A			(  _UpperCAmelCase       :     int					)       ->				int:







			'''simple docstring'''

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

			_UpperCAmelCase	 =     0
			_UpperCAmelCase	 =     str(_UpperCAmelCase					)

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

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

						_UpperCAmelCase	 =     str(_UpperCAmelCase					)

						steps += 1
			return steps





def 							A			(  _UpperCAmelCase       :     int					)       ->				int:







			'''simple docstring'''

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

			_UpperCAmelCase	 =     0
			_UpperCAmelCase	 =     str(_UpperCAmelCase					)

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

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

						_UpperCAmelCase	 =     str(_UpperCAmelCase					)

						steps += 1
			return steps


if __name__ == "__main__":
							import doctest

							doctest.testmod()





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


UpperCAmelCase__     = {"configuration_yolos": ["YOLOS_PRETRAINED_CONFIG_ARCHIVE_MAP", "YolosConfig", "YolosOnnxConfig"]}

try:
							if not is_vision_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							UpperCAmelCase__     = ["YolosFeatureExtractor"]
							UpperCAmelCase__     = ["YolosImageProcessor"]

try:
							if not is_torch_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							UpperCAmelCase__     = [
							    "YOLOS_PRETRAINED_MODEL_ARCHIVE_LIST",
							    "YolosForObjectDetection",
							    "YolosModel",
							    "YolosPreTrainedModel",
							]


if TYPE_CHECKING:
							from .configuration_yolos import YOLOS_PRETRAINED_CONFIG_ARCHIVE_MAP, YolosConfig, YolosOnnxConfig

							try:
														if not is_vision_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .feature_extraction_yolos import YolosFeatureExtractor
														from .image_processing_yolos import YolosImageProcessor

							try:
														if not is_torch_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_yolos import (
														    YOLOS_PRETRAINED_MODEL_ARCHIVE_LIST,
														    YolosForObjectDetection,
														    YolosModel,
														    YolosPreTrainedModel,
														)


else:
							import sys

							UpperCAmelCase__     = _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
