"""simple docstring"""






def   a_						(					lowerCamelCase       ):
				UpperCAmelCase__             =							False
				while is_sorted is False:  # Until all the indices are traversed keep looping
								UpperCAmelCase__             =							True
								for i in range(0					,			len(lowerCamelCase       ) - 1					,			2       ):  # iterating over all even indices
												if input_list[i] > input_list[i + 1]:
																UpperCAmelCase__      ,	UpperCAmelCase__             =							input_list[i + 1], input_list[i]
																# swapping if elements not in order
																UpperCAmelCase__             =							False

								for i in range(1					,			len(lowerCamelCase       ) - 1					,			2       ):  # iterating over all odd indices
												if input_list[i] > input_list[i + 1]:
																UpperCAmelCase__      ,	UpperCAmelCase__             =							input_list[i + 1], input_list[i]
																# swapping if elements not in order
																UpperCAmelCase__             =							False
				return input_list


if __name__ == "__main__":
						print('Enter list to be sorted')
						lowerCAmelCase__  :  Dict						     =	[int(x) for x in input().split()]
						# inputing elements of the list in one line
						lowerCAmelCase__  :  List[Any]						     =	odd_even_sort(input_list)
						print('The sorted list is')
						print(sorted_list)




"""simple docstring"""






from PIL import Image



def   a_						(					lowerCamelCase					,			lowerCamelCase       ):
				UpperCAmelCase__             =							(2_5_9 * (level + 2_5_5)) / (2_5_5 * (2_5_9 - level))

				def contrast(lowerCamelCase       ) -> int:
								return int(1_2_8 + factor * (c - 1_2_8)       )

				return img.point(lowerCamelCase       )


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



