


def      UpperCAmelCase__		(UpperCamelCase_							):



     """simple docstring"""






     for i in range(len(UpperCamelCase_							) - 1				,0				,-1							):
          snake_case											=							False

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

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

          if not swapped:
               break
     return unsorted


if __name__ == "__main__":
 import doctest

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








import os
from distutils.util import strtobool
def      UpperCAmelCase__		(UpperCamelCase_				,UpperCamelCase_							):



     """simple docstring"""






     for e in env_keys:
          snake_case											=							int(os.environ.get(UpperCamelCase_				,-1							)							)
          if val >= 0:
               return val
     return default
def      UpperCAmelCase__		(UpperCamelCase_				,UpperCamelCase_=False							):



     """simple docstring"""






     snake_case											=							os.environ.get(UpperCamelCase_				,str(UpperCamelCase_							)							)
     return strtobool(UpperCamelCase_							) == 1  # As its name indicates `strtobool` actually returns an int...

def      UpperCAmelCase__		(UpperCamelCase_				,UpperCamelCase_="no"							):



     """simple docstring"""






     snake_case											=							os.environ.get(UpperCamelCase_				,str(UpperCamelCase_							)							)
     return value




