



'''simple docstring'''





def 						__snake_case(				_lowerCAmelCase     ,   _lowerCAmelCase		)		-> Union[str, Any]:
      snake_case__  :    List[str]    						=      0
      while b > 0:
            if b & 1:
                  res += a

            a += a
            b >>= 1

      return res





def 						__snake_case(				_lowerCAmelCase     ,   _lowerCAmelCase     ,   _lowerCAmelCase		)		-> Dict:
      snake_case__  :    Union[str, Any]    						=      0
      while b > 0:
            if b & 1:
                  snake_case__  :    str    						=      ((res % c) + (a % c)) % c

            a += a
            b >>= 1

      return res





'''simple docstring'''





from PIL import Image





def 						__snake_case(				_lowerCAmelCase     ,   _lowerCAmelCase		)		-> Image:

      def brightness(_lowerCAmelCase		) -> float:
            return 128 + level + (c - 128)

      if not -255.0 <= level <= 255.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
              __a          =		change_brightness(img, 100)
              brigt_img.save("image_data/lena_brightness.png", format="png")
