
'''simple docstring'''
from math import factorial






def      UpperCamelCase_				(      A__  ,      A__  ,      A__						):
	if successes > trials:
		raise ValueError("""successes must be lower or equal to trials"""						)
	if trials < 0 or successes < 0:
		raise ValueError("""the function is defined for non-negative integers"""						)
	if not isinstance(A__  ,      A__						) or not isinstance(A__  ,      A__						):
		raise ValueError("""the function is defined for non-negative integers"""						)
	if not 0 < prob < 1:
		raise ValueError("""prob has to be in range of 1 - 0"""						)
	a_      				=						(prob**successes) * ((1 - prob) ** (trials - successes))
	# Calculate the binomial coefficient: n! / k!(n-k)!
	a_      				=						float(factorial(A__						)						)
	coefficient /= factorial(A__						) * factorial(trials - successes						)
	return probability * coefficient


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

		testmod()
		print('Probability of 2 successes out of 4 trails')
		print('with probability of 0.75 is:', end=' ')
		print(binomial_distribution(2, 4, 0.75))


'''simple docstring'''
def      UpperCamelCase_				(      A__						):
	if len(A__						) <= 1:
		return lst

	a_      				=						1

	while i < len(A__						):
		if lst[i - 1] <= lst[i]:
			i += 1
		else:
			a_				,  a_      				=						lst[i], lst[i - 1]
			i -= 1
			if i == 0:
				a_      				=						1

	return lst


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