
def 						UpperCAmelCase			(	a_		,   a_		,   a_						)		->	Optional[int]:







				"""simple docstring"""



				if n == 0:
								return 1

				elif n % 2 == 1:
								return (binary_exponentiation(a_		,   n - 1		,   a_						) * a) % mod

				else:
								__A   			= binary_exponentiation(a_		,   n / 2		,   a_						)
								return (b * b) % mod


# a prime number
SCREAMING_SNAKE_CASE							:Any							 =				701

SCREAMING_SNAKE_CASE							:List[str]							 =				10_0000_0000
SCREAMING_SNAKE_CASE							:List[str]							 =				10

# using binary exponentiation function, O(log(p)):
print((a / b) % p == (a * binary_exponentiation(b, p - 2, p)) % p)
print((a / b) % p == (a * b ** (p - 2)) % p)



from PIL import Image





def 					__lowerCamelCase	( UpperCamelCase__   ,							UpperCamelCase__      ):







							'''simple docstring'''






							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
										_UpperCAmelCase		:   Tuple										=       change_contrast(img, 170)
										cont_img.save("""image_data/lena_high_contrast.png""", format="""png""")




