def      _a					(   lowercase__	:      int			):







     '''simple docstring'''


     SCREAMING_SNAKE_CASE__					:					Dict      =		[1]

     SCREAMING_SNAKE_CASE__      ,				SCREAMING_SNAKE_CASE__      ,				SCREAMING_SNAKE_CASE__					:					int      =		0, 0, 0
     SCREAMING_SNAKE_CASE__					:					Any      =		ugly_nums[ia] * 2
     SCREAMING_SNAKE_CASE__					:					Any      =		ugly_nums[ia] * 3
     SCREAMING_SNAKE_CASE__					:					Optional[Any]      =		ugly_nums[ia] * 5

     for _ in range(1  ,	lowercase__			):
          SCREAMING_SNAKE_CASE__					:					Optional[int]      =		min(lowercase__  ,	lowercase__  ,	lowercase__			)
          ugly_nums.append(lowercase__			)
          if next_num == next_a:
               ia += 1
               SCREAMING_SNAKE_CASE__					:					Tuple      =		ugly_nums[ia] * 2
          if next_num == next_a:
               ia += 1
               SCREAMING_SNAKE_CASE__					:					Dict      =		ugly_nums[ia] * 3
          if next_num == next_a:
               ia += 1
               SCREAMING_SNAKE_CASE__					:					str      =		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     __magic_name__							(				__UpperCAmelCase				,						__UpperCAmelCase   )    ->       Image:

   '''simple docstring'''







   __SCREAMING_SNAKE_CASE   				=							(259 * (level + 255)) / (255 * (259 - level))

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

   return img.point(__UpperCAmelCase   )


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





