
def 	_SCREAMING_SNAKE_CASE					(		_lowerCamelCase :			Optional[Any])					->    Union[str, Any]:






							'''simple docstring'''





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




def 	_SCREAMING_SNAKE_CASE					(		_lowerCamelCase :			List[str]						,  _lowerCamelCase :			str						,  _lowerCamelCase :			List[str])					->    Dict:






							'''simple docstring'''





							if i >= h:
														return

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

							# If there are more than 2 elements in the array
							if h - i + 1 > 2:
														__UpperCamelCase	:   Union[str, Any]			   =					(int)((h - i + 1) / 3)

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

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

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


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

from PIL import Image




def 	_SCREAMING_SNAKE_CASE					(		_lowerCamelCase :			Image						,  _lowerCamelCase :			int)					->    Image:






							'''simple docstring'''





							__UpperCamelCase	:   str			   =					(259 * (level + 255)) / (255 * (259 - level))

							def contrast(_lowerCamelCase :			int) -> int:
														return int(128 + factor * (c - 128))

							return img.point(_lowerCamelCase)


if __name__ == "__main__":
		# Load image
		with Image.open('image_data/lena.jpg') as img:
				# Change contrast to 170
				lowercase  :					Tuple													=       change_contrast(img, 170)
				cont_img.save('image_data/lena_high_contrast.png', format='png')