




'''simple docstring'''






def     UpperCamelCase_      (   A__ :       list ):
  '''simple docstring'''





  for i in range(len(A__ ) - 1							,   0							,   -1 ):
    lowerCAmelCase_      :				Dict      =       False

    for j in range(A__							,   0							,   -1 ):
      if unsorted[j] < unsorted[j - 1]:
        lowerCAmelCase_      :				Union[str, Any]      =       unsorted[j - 1], unsorted[j]
        lowerCAmelCase_      :				List[Any]      =       True

    for j in range(A__ ):
      if unsorted[j] > unsorted[j + 1]:
        lowerCAmelCase_      :				List[Any]      =       unsorted[j + 1], unsorted[j]
        lowerCAmelCase_      :				List[Any]      =       True

    if not swapped:
      break
  return unsorted


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  __A :  Dict    							=				input("Enter numbers separated by a comma:\n").strip()
  __A :  Any    							=				[int(item) for item in user_input.split(",")]
  print(F'''{cocktail_shaker_sort(unsorted) = }''')







'''simple docstring'''






from ..utils import DummyObject, requires_backends






class        __snake_case	(       metaclass=_SCREAMING_SNAKE_CASE):







    """simple docstring"""



    lowercase       			= ['note_seq']

    def __init__(       self   :  Tuple   ,						*lowerCamelCase   :  Optional[int]   ,						**lowerCamelCase   :  Tuple		)       ->  Any:
      requires_backends(self   ,						["""note_seq"""]		)

    @classmethod
    def __lowercase       (       cls   :  Optional[Any]   ,						*lowerCamelCase   :  List[Any]   ,						**lowerCamelCase   :  Dict		)       ->  List[Any]:
      requires_backends(cls   ,						["""note_seq"""]		)





    @classmethod
    def __lowercase       (       cls   :  Union[str, Any]   ,						*lowerCamelCase   :  Union[str, Any]   ,						**lowerCamelCase   :  List[Any]		)       ->  Optional[int]:
      requires_backends(cls   ,						["""note_seq"""]		)



