
'''simple docstring'''


def lowercase_	(   _lowercase				)     ->							list:
					'''simple docstring'''

					for i in range(len(_lowercase				) - 1			,       0			,       -1				):
										lowerCamelCase_					:      int     =		False

										for j in range(_lowercase			,       0			,       -1				):
															if unsorted[j] < unsorted[j - 1]:
																				lowerCamelCase_,      lowerCamelCase_					:      Optional[int]     =		unsorted[j - 1], unsorted[j]
																				lowerCamelCase_					:      Any     =		True

										for j in range(_lowercase				):
															if unsorted[j] > unsorted[j + 1]:
																				lowerCamelCase_,      lowerCamelCase_					:      Any     =		unsorted[j + 1], unsorted[j]
																				lowerCamelCase_					:      Optional[Any]     =		True

										if not swapped:
															break
					return unsorted


if __name__ == "__main__":
					import doctest

					doctest.testmod()
					__lowercase							:   Optional[int]					=     input('''Enter numbers separated by a comma:\n''').strip()
					__lowercase							:   str					=     [int(item) for item in user_input.split(''',''')]
					print(f'{cocktail_shaker_sort(unsorted) = }')




'''simple docstring'''


import itertools
import math




def lowercase_	(   _lowercase				)     ->							bool:
					'''simple docstring'''

					if 1 < number < 4:
										# 2 and 3 are primes
										return True
					elif number < 2 or number % 2 == 0 or number % 3 == 0:
										# Negatives, 0, 1, all even numbers, all multiples of 3 are not primes
										return False

					# All primes number are in format of 6k +/- 1
					for i in range(5			,       int(math.sqrt(_lowercase				) + 1				)			,       6				):
										if number % i == 0 or number % (i + 2) == 0:
															return False
					return True




def lowercase_	(   )     ->							Optional[int]:
					'''simple docstring'''

					lowerCamelCase_					:      Union[str, Any]     =		2
					while True:
										if is_prime(_lowercase				):
															yield num
										num += 1




def lowercase_	(   _lowercase = 10_001				)     ->							int:
					'''simple docstring'''

					return next(itertools.islice(prime_generator()			,       nth - 1			,       _lowercase				)				)


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


