





'''simple docstring'''
def 	_lowerCAmelCase (						_UpperCamelCase						:					list    )				->      list:
     """simple docstring"""




     for i in range(len(_UpperCamelCase    ) - 1							,			0							,			-1    ):
          _SCREAMING_SNAKE_CASE							   =False

          for j in range(_UpperCamelCase							,			0							,			-1    ):
               if unsorted[j] < unsorted[j - 1]:
                    _SCREAMING_SNAKE_CASE   ,						_SCREAMING_SNAKE_CASE							   =unsorted[j - 1], unsorted[j]
                    _SCREAMING_SNAKE_CASE							   =True

          for j in range(_UpperCamelCase    ):
               if unsorted[j] > unsorted[j + 1]:
                    _SCREAMING_SNAKE_CASE   ,						_SCREAMING_SNAKE_CASE							   =unsorted[j + 1], unsorted[j]
                    _SCREAMING_SNAKE_CASE							   =True

          if not swapped:
               break
     return unsorted


if __name__ == "__main__":
     import doctest

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



'''simple docstring'''
from ..utils import DummyObject, requires_backends







class 							A__   (	metaclass=A__  ):
  A__					=    ['note_seq']





  def __init__(		self				:     List[str]							, *_a				:     Any							, **_a				:     Dict			)     ->   Optional[Any]:





       '''simple docstring'''






       requires_backends(self							, ['note_seq']			)





  @classmethod
  def 						A  (		cls				:     Any							, *_a				:     str							, **_a				:     List[Any]			)     ->   List[str]:





       '''simple docstring'''






       requires_backends(cls							, ['note_seq']			)





  @classmethod
  def 						A  (		cls				:     int							, *_a				:     Optional[Any]							, **_a				:     Optional[int]			)     ->   Tuple:





       '''simple docstring'''






       requires_backends(cls							, ['note_seq']			)
