def        __lowerCAmelCase      (	_A       ):



							"""simple docstring"""


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


def        __lowerCAmelCase      (	_A = 99       ):



							"""simple docstring"""


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

							while True:
														if check_bouncy(_A       ):
																					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    a      ( a	)     ->List[Any]:




			'''simple docstring'''


			SCREAMING_SNAKE_CASE     						= len(a	)
			while cur > 1:
						# Find the maximum number in arr
						SCREAMING_SNAKE_CASE     						= arr.index(max(arr[0:cur]	)	)
						# Reverse from 0 to mi
						SCREAMING_SNAKE_CASE     						= arr[mi::-1] + arr[mi + 1 : len(a	)]
						# Reverse whole list
						SCREAMING_SNAKE_CASE     						= arr[cur - 1 :: -1] + arr[cur : len(a	)]
						cur -= 1
			return arr


if __name__ == "__main__":
							__lowerCAmelCase					   =       input('Enter numbers separated by a comma:\n').strip()
							__lowerCAmelCase					   =       [int(item) for item in user_input.split(',')]
							print(pancake_sort(unsorted))