






def 	lowerCamelCase__      (  lowercase					):

  """simple docstring"""






  stooge(_UpperCamelCase    ,  0    ,  len(_UpperCamelCase					) - 1					)
  return arr


def 	lowerCamelCase__      (  lowercase    ,  lowercase    ,  lowercase					):

  """simple docstring"""






  if i >= h:
    return

  # If first element is smaller than the last then swap them
  if arr[i] > arr[h]:
    SCREAMING_SNAKE_CASE							:   Optional[Any]						    =     arr[h], arr[i]

  # If there are more than 2 elements in the array
  if h - i + 1 > 2:
    SCREAMING_SNAKE_CASE							:   Tuple						    =     (int)((h - i + 1) / 3					)

    # Recursively sort first 2/3 elements
    stooge(_UpperCamelCase    ,  _UpperCamelCase    ,  (h - t)					)

    # Recursively sort last 2/3 elements
    stooge(_UpperCamelCase    ,  i + t    ,  (_UpperCamelCase)					)

    # Recursively sort first 2/3 elements
    stooge(_UpperCamelCase    ,  _UpperCamelCase    ,  (h - t)					)


if __name__ == "__main__":
   snake_case     					=		input("""Enter numbers separated by a comma:\n""").strip()
   snake_case     					=		[int(item) for item in user_input.split(""",""")]
   print(stooge_sort(unsorted))








"""simple docstring"""




from cva import destroyAllWindows, imread, imshow, waitKey




def 			_lowerCAmelCase		(		_UpperCamelCase    ):






  """simple docstring"""



  _lowercase			,					_lowercase:      Union[str, Any]   			=  img.shape[0], img.shape[1]

  # converting each pixel's color to its negative
  for i in range(_UpperCamelCase    ):
    for j in range(_UpperCamelCase    ):
      _lowercase:      Dict   			=  [255, 255, 255] - img[i][j]

  return img


if __name__ == "__main__":
  # read original image
  A__ :       Optional[Any]				= imread('image_data/lena.jpg', 1)

  # convert to its negative
  A__ :       Dict				= convert_to_negative(img)

  # show result image
  imshow('negative of original image', img)
  waitKey(0)
  destroyAllWindows()
