"""simple docstring"""







import random
def 						__UpperCAmelCase       (					UpperCAmelCase_					:       Dict    ,							UpperCAmelCase_					:       Dict    ,							UpperCAmelCase_					:       Optional[int]						)							->    str:

	'''simple docstring'''





	__snake_case    :							str   	=				a[left_index]
	__snake_case    :							Optional[int]   	=				left_index + 1
	for j in range(left_index + 1    ,							UpperCAmelCase_						):
		if a[j] < pivot:
			__snake_case	,       __snake_case    :							Union[str, Any]   	=				a[i], a[j]
			i += 1
	__snake_case	,       __snake_case    :							Tuple   	=				a[i - 1], a[left_index]
	return i - 1
def 						__UpperCAmelCase       (					UpperCAmelCase_					:       Any    ,							UpperCAmelCase_					:       str    ,							UpperCAmelCase_					:       List[str]						)							->    str:

	'''simple docstring'''





	if left < right:
		__snake_case    :							List[str]   	=				random.randint(UpperCAmelCase_    ,							right - 1						)
		__snake_case	,       __snake_case    :							List[str]   	=				(
		    a[left],
		    a[pivot],
		)  # switches the pivot with the left most bound
		__snake_case    :							Any   	=				partition(UpperCAmelCase_    ,							UpperCAmelCase_    ,							UpperCAmelCase_						)
		quick_sort_random(
		    UpperCAmelCase_    ,							UpperCAmelCase_    ,							UpperCAmelCase_						)  # recursive quicksort to the left of the pivot point
		quick_sort_random(
		    UpperCAmelCase_    ,							pivot_index + 1    ,							UpperCAmelCase_						)  # recursive quicksort to the right of the pivot point
def 						__UpperCAmelCase       (					)							->    Optional[int]:

	'''simple docstring'''





	__snake_case    :							str   	=				input('Enter numbers separated by a comma:\n'						).strip()
	__snake_case    :							Optional[Any]   	=				[int(UpperCAmelCase_						) for item in user_input.split(','						)]

	quick_sort_random(UpperCAmelCase_    ,							0    ,							len(UpperCAmelCase_						)						)

	print(UpperCAmelCase_						)


if __name__ == "__main__":
	main()






"""simple docstring"""







import numpy as np
def 						__UpperCAmelCase       (					UpperCAmelCase_					:       np.array						)							->    np.array:

	'''simple docstring'''





	return 1 / (1 + np.exp(-vector						))


if __name__ == "__main__":
	import doctest

	doctest.testmod()





