


"""simple docstring"""





def     __lowercase					(    a :				list )					->					Dict:
      for i in range(len(UpperCamelCase__ ) - 1       ,		0       ,		-1 ):
            __snake_case      :    Union[str, Any]  			=False

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

            for j in range(UpperCamelCase__ ):
                  if unsorted[j] > unsorted[j + 1]:
                        __snake_case			,				__snake_case      :    Optional[Any]  			=unsorted[j + 1], unsorted[j]
                        __snake_case      :    str  			=True

            if not swapped:
                  break
      return unsorted


if __name__ == "__main__":
    import doctest

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










"""simple docstring"""





from __future__ import annotations



def     __lowercase					(    a :				int       ,		a :				int )					->					list[str]:
      if partitions <= 0:
            raise ValueError('''partitions must be a positive number!''' )
      if partitions > number_of_bytes:
            raise ValueError('''partitions can not > number_of_bytes!''' )
      __snake_case      :    List[str]  			=number_of_bytes // partitions
      __snake_case      :    str  			=[]
      for i in range(a ):
            __snake_case      :    Optional[Any]  			=i * bytes_per_partition + 1
            __snake_case      :    Any  			=(
                number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
            )
            allocation_list.append(f'''{start_bytes}-{end_bytes}''' )
      return allocation_list


if __name__ == "__main__":
    import doctest

    doctest.testmod()


