






from PIL import Image


def 				snake_case__							(							UpperCAmelCase							:  Image    ,			UpperCAmelCase							:  float       ):

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

    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    :   Tuple        =			change_brightness(img, 100)
  brigt_img.save("""image_data/lena_brightness.png""", format="""png""")











def 				snake_case__							(							UpperCAmelCase							:  Tuple       ):
    lowerCAmelCase__   :List[Any]      							=				len(UpperCAmelCase       )
    for i in range(length - 1       ):
        lowerCAmelCase__   :Union[str, Any]      							=				i
        for k in range(i + 1    ,			UpperCAmelCase       ):
            if collection[k] < collection[least]:
                lowerCAmelCase__   :Any      							=				k
        if least != i:
            lowerCAmelCase__							,lowerCAmelCase__   :int      							=				(collection[i], collection[least])
    return collection


if __name__ == "__main__":
 _a    :   Optional[int]        =			input("""Enter numbers separated by a comma:\n""").strip()
 _a    :   Any        =			[int(item) for item in user_input.split(""",""")]
 print(selection_sort(unsorted))



