


'''simple docstring'''

def 							__magic_name__(						lowerCamelCase,				lowerCamelCase):
      __lowerCAmelCase							       =				0
      while b > 0:
            if b & 1:
                  res += a

            a += a
            b >>= 1

      return res




def 							__magic_name__(						lowerCamelCase,				lowerCamelCase,				lowerCamelCase):
      __lowerCAmelCase							       =				0
      while b > 0:
            if b & 1:
                  __lowerCAmelCase							       =				((res % c) + (a % c)) % c

            a += a
            b >>= 1

      return res





'''simple docstring'''

from PIL import Image

def 							__magic_name__(						lowerCamelCase,				lowerCamelCase):

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

						if not -2_55.0 <= level <= 2_55.0:
												raise ValueError('''level must be between -255.0 (black) and 255.0 (white)''')
						return img.point(lowerCamelCase)


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

