





'''simple docstring'''


def 	__a(SCREAMING_SNAKE_CASE_  :					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"    )

    _lowerCAmelCase				=				0
    _lowerCAmelCase				=				str(SCREAMING_SNAKE_CASE_    )

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

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

        _lowerCAmelCase				=				str(SCREAMING_SNAKE_CASE_    )

        steps += 1
    return steps


def 	__a(SCREAMING_SNAKE_CASE_  :					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"    )

    _lowerCAmelCase				=				0
    _lowerCAmelCase				=				str(SCREAMING_SNAKE_CASE_    )

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

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

        _lowerCAmelCase				=				str(SCREAMING_SNAKE_CASE_    )

        steps += 1
    return steps


if __name__ == "__main__":
       import doctest

       doctest.testmod()









'''simple docstring'''


def 	__a(SCREAMING_SNAKE_CASE_  :					int    ):



    '''simple docstring'''





    if not isinstance(SCREAMING_SNAKE_CASE_		,       SCREAMING_SNAKE_CASE_    ):
        raise ValueError("check_bouncy() accepts only integer arguments"    )
    _lowerCAmelCase				=      str(SCREAMING_SNAKE_CASE_    )
    _lowerCAmelCase				=      "".join(sorted(SCREAMING_SNAKE_CASE_    )    )
    return sorted_str_n != str_n and sorted_str_n[::-1] != str_n


def 	__a(SCREAMING_SNAKE_CASE_  :					float = 99    ):



    '''simple docstring'''





    if not 0 < percent < 100:
        raise ValueError("solution() only accepts values from 0 to 100"    )
    _lowerCAmelCase				=      0
    _lowerCAmelCase				=      1

    while True:
        if check_bouncy(SCREAMING_SNAKE_CASE_    ):
            bouncy_num += 1
        if (bouncy_num / num) * 100 >= percent:
            return num
        num += 1


if __name__ == "__main__":
       from doctest import testmod

       testmod()
       print(f'''{solution(99)}''')


