






'''simple docstring'''





from cva import destroyAllWindows, imread, imshow, waitKey
def __UpperCAmelCase   (					A					:			List[str]		)    ->   str:
			# getting number of pixels in the image
			UpperCAmelCase_    ,      UpperCAmelCase_      :       Tuple          =       img.shape[0], img.shape[1]

			# converting each pixel's color to its negative
			for i in range(A		):
						for j in range(A		):
									UpperCAmelCase_      :       Optional[int]          =       [2_5_5, 2_5_5, 2_5_5] - img[i][j]

			return img


if __name__ == "__main__":
						# read original image
						_UpperCamelCase						:						str  =					imread('image_data/lena.jpg', 1)

						# convert to its negative
						_UpperCamelCase						:						List[str]  =					convert_to_negative(img)

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










'''simple docstring'''





def __UpperCAmelCase   (					A					:			list		)    ->   list:
			if len(A		) <= 1:
						return lst

			UpperCAmelCase_      :       List[str]          =       1

			while i < len(A		):
						if lst[i - 1] <= lst[i]:
									i += 1
						else:
									UpperCAmelCase_    ,      UpperCAmelCase_      :       Dict          =       lst[i], lst[i - 1]
									i -= 1
									if i == 0:
												UpperCAmelCase_      :       Dict          =       1

			return lst


if __name__ == "__main__":
						_UpperCamelCase						:						int  =					input('Enter numbers separated by a comma:\n').strip()
						_UpperCamelCase						:						Union[str, Any]  =					[int(item) for item in user_input.split(',')]
						print(gnome_sort(unsorted))


