
"""simple docstring"""

def 							A						(    snake_case				:int		)				->     bool:
 if not isinstance(snake_case    , snake_case		):
  raise ValueError('check_bouncy() accepts only integer arguments'		)
 __UpperCamelCase      =	str(snake_case		)
 __UpperCamelCase      =	''.join(sorted(snake_case		)		)
 return sorted_str_n != str_n and sorted_str_n[::-1] != str_n






def 							A						(    snake_case				:float = 9_9		)				->     int:
 if not 0 < percent < 1_0_0:
  raise ValueError('solution() only accepts values from 0 to 100'		)
 __UpperCamelCase      =	0
 __UpperCamelCase      =	1

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


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

      testmod()
      print(f'''{solution(9_9)}''')





"""simple docstring"""

from math import factorial

UpperCamelCase     :    List[Any]       =			{str(d): factorial(d) for d in range(1_0)}






def 							A						(    snake_case				:int		)				->     int:
 return sum(DIGIT_FACTORIAL[d] for d in str(snake_case		)		)






def 							A						(    )				->     int:
 __UpperCamelCase      =	7 * factorial(9		) + 1
 return sum(i for i in range(3    , snake_case		) if sum_of_digit_factorial(snake_case		) == i		)


if __name__ == "__main__":
      print(f'''{solution() = }''')



