"""simple docstring"""






def SCREAMING_SNAKE_CASE__     (  __UpperCAmelCase			,       __UpperCAmelCase					)    ->    Union[str, Any]:
   return 1 if input_a == input_a else 0



def SCREAMING_SNAKE_CASE__     (  )    ->    str:
   assert xnor_gate(0			,       0					) == 1
   assert xnor_gate(0			,       1					) == 0
   assert xnor_gate(1			,       0					) == 0
   assert xnor_gate(1			,       1					) == 1


if __name__ == "__main__":
       print(xnor_gate(0, 0))
       print(xnor_gate(0, 1))
       print(xnor_gate(1, 0))
       print(xnor_gate(1, 1))




from PIL import Image




def    a__    (		snake_case__					:							Image						,   snake_case__					:							int     ):
  _UpperCAmelCase		:							Optional[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
  SCREAMING_SNAKE_CASE__					:     int       =     change_contrast(img, 170)
  cont_img.save('image_data/lena_high_contrast.png', format='png')





