






from PIL import Image






def   UpperCamelCase  (       snake_case__     :   Image	,snake_case__     :   int  ):




     '''simple docstring'''






     __snake_case			:List[Any]          =						(259 * (level + 255)) / (255 * (259 - level))

     def contrast(snake_case__     :   int  ) -> int:
          return int(128 + factor * (c - 128)  )

     return img.point(snake_case__  )


if __name__ == "__main__":
     # Load image
     with Image.open("""image_data/lena.jpg""") as img:
          # Change contrast to 170
          lowerCamelCase__							=     change_contrast(img, 170)
          cont_img.save("""image_data/lena_high_contrast.png""", format="""png""")










import math

lowerCamelCase__							=     10
lowerCamelCase__							=     7
lowerCamelCase__							=     BALLS_PER_COLOUR * NUM_COLOURS






def   UpperCamelCase  (       snake_case__     :   int = 20  ):




     '''simple docstring'''






     __snake_case			:Dict          =						math.comb(snake_case__	,snake_case__  )
     __snake_case			:int          =						math.comb(NUM_BALLS - BALLS_PER_COLOUR	,snake_case__  )

     __snake_case			:List[str]          =						NUM_COLOURS * (1 - missing_colour / total)

     return f'''{result:.9f}'''


if __name__ == "__main__":
     print(solution(20))


