"""simple docstring"""






def   a_						(					lowerCamelCase					,			lowerCamelCase       ):
				return abs(lowerCamelCase       ) if a == 0 else greatest_common_divisor(b % a					,			lowerCamelCase       )



def   a_						(					lowerCamelCase					,			lowerCamelCase       ):
				while y:  # --> when y=0 then loop will terminate and return x as final GCD.
								UpperCAmelCase__      ,	UpperCAmelCase__             =							y, x % y
				return abs(lowerCamelCase       )



def   a_						(					):
				try:
								UpperCAmelCase__             =							input('Enter two integers separated by comma (,): '       ).split(','       )
								UpperCAmelCase__             =							int(nums[0]       )
								UpperCAmelCase__             =							int(nums[1]       )
								print(
								    f'''greatest_common_divisor({num_a}, {num_a}) = '''
								    f'''{greatest_common_divisor(lowerCamelCase					,			lowerCamelCase       )}'''       )
								print(f'''By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(lowerCamelCase					,			lowerCamelCase       )}'''       )
				except (IndexError, UnboundLocalError, ValueError):
								print('Wrong input'       )


if __name__ == "__main__":
						main()




"""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')



