'''simple docstring'''







def    lowerCamelCase       (			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'		)

							SCREAMING_SNAKE_CASE__     :Any						    = 0
							SCREAMING_SNAKE_CASE__     :Union[str, Any]						    = str(UpperCAmelCase__		)

							while len(UpperCAmelCase__		) != 1:
														SCREAMING_SNAKE_CASE__     :Any						    = [int(UpperCAmelCase__		) for i in num_string]

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

														SCREAMING_SNAKE_CASE__     :Dict						    = str(UpperCAmelCase__		)

														steps += 1
							return steps


def    lowerCamelCase       (			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'		)

							SCREAMING_SNAKE_CASE__     :Union[str, Any]						    = 0
							SCREAMING_SNAKE_CASE__     :Dict						    = str(UpperCAmelCase__		)

							while len(UpperCAmelCase__		) != 1:
														SCREAMING_SNAKE_CASE__     :List[Any]						    = [int(UpperCAmelCase__		) for i in num_string]

														SCREAMING_SNAKE_CASE__     :Union[str, Any]						    = 0
														for i in range(0				,						len(UpperCAmelCase__		)		):
																					total += numbers[i]

														SCREAMING_SNAKE_CASE__     :List[str]						    = str(UpperCAmelCase__		)

														steps += 1
							return steps


if __name__ == "__main__":
		import doctest

		doctest.testmod()







'''simple docstring'''







def    lowerCamelCase       (			UpperCAmelCase__				:  int		)			->	int:


							'''simple docstring'''






							assert (
							    isinstance(UpperCAmelCase__				,						UpperCAmelCase__		) and number_of_steps > 0
							), F'''number_of_steps needs to be positive integer, your input {number_of_steps}'''
							if number_of_steps == 1:
														return 1
							SCREAMING_SNAKE_CASE__    ,      SCREAMING_SNAKE_CASE__     :Dict						    = 1, 1
							for _ in range(number_of_steps - 1		):
														SCREAMING_SNAKE_CASE__    ,      SCREAMING_SNAKE_CASE__     :Union[str, Any]						    = current + previous, current
							return current


if __name__ == "__main__":
		import doctest

		doctest.testmod()






