
"""simple docstring"""





from PIL import Image







def 	__a     (		__lowerCamelCase,		__lowerCamelCase  ):


   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(_SCREAMING_SNAKE_CASE  )


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









def    __lowercase   (      _SCREAMING_SNAKE_CASE = 10	) ->   str:


      '''simple docstring'''


      if not isinstance(_SCREAMING_SNAKE_CASE ,						_SCREAMING_SNAKE_CASE	) or n < 0:
            raise ValueError("""Invalid input"""	)
      SCREAMING_SNAKE_CASE		=						10**n
      SCREAMING_SNAKE_CASE		=						2_84_33 * (pow(2 ,						7_83_04_57 ,						_SCREAMING_SNAKE_CASE	)) + 1
      return str(number % modulus	)


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

      testmod()
      print(F'''{solution(1_0) = }''')


