



from PIL import Image







def snake_case__  (			__SCREAMING_SNAKE_CASE			,     __SCREAMING_SNAKE_CASE )		->							Image:
			UpperCAmelCase_						=				(259 * (level + 255)) / (255 * (259 - level))

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

			return img.point(__SCREAMING_SNAKE_CASE )


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






def snake_case__  (			__SCREAMING_SNAKE_CASE )		->							int:
		UpperCAmelCase_						=				1
		for i in range(1			,     num + 1 ):
				fact *= i
		return fact







def snake_case__  (			__SCREAMING_SNAKE_CASE )		->							int:
		UpperCAmelCase_						=				0
		while number > 0:
				UpperCAmelCase_						=				number % 10
				sum_of_digits += last_digit
				UpperCAmelCase_						=				number // 10  # Removing the last_digit from the given number
		return sum_of_digits







def snake_case__  (			__SCREAMING_SNAKE_CASE = 100 )		->							int:
		UpperCAmelCase_						=				factorial(__SCREAMING_SNAKE_CASE )
		UpperCAmelCase_						=				split_and_add(__SCREAMING_SNAKE_CASE )
		return result


if __name__ == "__main__":
			print(solution(int(input("Enter the Number: ").strip())))

