
'''simple docstring'''






def      UpperCAmelCase      (		lowerCamelCase_  :int ):







		'''simple docstring'''

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

		snake_case_		:							Optional[Any]			       =						0
		snake_case_		:							Tuple			       =						str(a_ )

		while len(a_ ) != 1:
				snake_case_		:							Dict			       =						[int(a_ ) for i in num_string]

				snake_case_		:							Union[str, Any]			       =						1
				for i in range(0				,      len(a_ ) ):
						total *= numbers[i]

				snake_case_		:							Union[str, Any]			       =						str(a_ )

				steps += 1
		return steps





def      UpperCAmelCase      (		lowerCamelCase_  :int ):







		'''simple docstring'''

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

		snake_case_		:							Dict			       =						0
		snake_case_		:							str			       =						str(a_ )

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

				snake_case_		:							List[Any]			       =						0
				for i in range(0				,      len(a_ ) ):
						total += numbers[i]

				snake_case_		:							Union[str, Any]			       =						str(a_ )

				steps += 1
		return steps


if __name__ == "__main__":
							import doctest

							doctest.testmod()



'''simple docstring'''






def      UpperCAmelCase      (		lowerCamelCase_  :int ):







		'''simple docstring'''
		if num < 0:
				return False

		snake_case_		:							int			       =						num
		snake_case_		:							int			       =						0
		while num > 0:
				snake_case_		:							Tuple			       =						rev_num * 10 + (num % 10)
				num //= 10

		return num_copy == rev_num


if __name__ == "__main__":
							import doctest

							doctest.testmod()