
"""simple docstring"""







def     __lowerCAmelCase				(_UpperCamelCase		):
	__lowerCAmelCase			:						Any									=      [1]

	__lowerCAmelCase			,   __lowerCAmelCase			,   __lowerCAmelCase			:						Optional[Any]									=      0, 0, 0
	__lowerCAmelCase			:						List[str]									=      ugly_nums[ia] * 2
	__lowerCAmelCase			:						Optional[Any]									=      ugly_nums[ia] * 3
	__lowerCAmelCase			:						Any									=      ugly_nums[ia] * 5

	for _ in range(1       ,  _UpperCamelCase		):
		__lowerCAmelCase			:						int									=      min(_UpperCamelCase       ,  _UpperCamelCase       ,  _UpperCamelCase		)
		ugly_nums.append(_UpperCamelCase		)
		if next_num == next_a:
			ia += 1
			__lowerCAmelCase			:						Optional[Any]									=      ugly_nums[ia] * 2
		if next_num == next_a:
			ia += 1
			__lowerCAmelCase			:						Any									=      ugly_nums[ia] * 3
		if next_num == next_a:
			ia += 1
			__lowerCAmelCase			:						int									=      ugly_nums[ia] * 5
	return ugly_nums[-1]


if __name__ == "__main__":
							from doctest import testmod

							testmod(verbose=True)
							print(f'{ugly_numbers(200) = }')




'''simple docstring'''




from PIL import Image



def       __lowerCamelCase  (					_lowercase	,				_lowercase		)      ->			Image:

							def brightness(_lowercase		) -> float:
														return 1_2_8 + level + (c - 1_2_8)

							if not -255.0 <= level <= 255.0:
														raise ValueError("""level must be between -255.0 (black) and 255.0 (white)"""		)
							return img.point(_lowercase		)


if __name__ == "__main__":
							# Load image
							with Image.open("""image_data/lena.jpg""") as img:
														# Change brightness to 100
														a   :			Optional[Any]					  =    change_brightness(img, 1_0_0)
														brigt_img.save("""image_data/lena_brightness.png""", format="""png""")

