

'''simple docstring'''





def       __lowerCamelCase			(				UpperCamelCase__   ):







							'''simple docstring'''






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





def       __lowerCamelCase			(				UpperCamelCase__ = 99   ):







							'''simple docstring'''






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

							while True:
														if check_bouncy(UpperCamelCase__   ):
																					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)}''')







def       __lowerCamelCase			(				UpperCamelCase__   ):







							'''simple docstring'''






							if not nums:  # Makes sure that the list is not empty
														raise ValueError('List is empty'   )

							snake_case_           =					sum(UpperCamelCase__   ) / len(UpperCamelCase__   )  # Calculate the average
							return sum(abs(x - average   ) for x in nums   ) / len(UpperCamelCase__   )


if __name__ == "__main__":
					import doctest

					doctest.testmod()




