


def       lowercase_		(		_A			:    int						):

      """simple docstring"""




      lowerCamelCase__		:				Tuple    =  0
      while num > 0:
            digit_sum += num % 10
            num //= 10
      return digit_sum

def       lowercase_		(		_A			:    int = 100						):

      """simple docstring"""




      lowerCamelCase__		:				Tuple    =  1
      lowerCamelCase__		:				Tuple    =  2

      for i in range(2    ,					max_n + 1						):
            lowerCamelCase__		:				int    =  pre_numerator
            lowerCamelCase__		:				Optional[Any]    =  2 * i // 3 if i % 3 == 0 else 1
            lowerCamelCase__		:				Tuple    =  cur_numerator
            lowerCamelCase__		:				Tuple    =  e_cont * pre_numerator + temp

      return sum_digits(_A						)


if __name__ == "__main__":
    print(f'{solution() = }')






from PIL import Image

def       lowercase_		(		_A			:    Image						):

      """simple docstring"""




      lowerCamelCase__    ,   lowerCamelCase__		:				List[str]    =  image.size
      lowerCamelCase__		:				Dict    =  0
      lowerCamelCase__		:				Dict    =  image.load()
      for i in range(_A						):
            for j in range(_A						):
                  lowerCamelCase__		:				List[str]    =  pixels[j, i]
                  mean += pixel
      mean //= width * height

      for j in range(_A						):
            for i in range(_A						):
                  lowerCamelCase__		:				Union[str, Any]    =  255 if pixels[i, j] > mean else 0
      return image


if __name__ == "__main__":
    A      :    int		=					mean_threshold(Image.open("path_to_image").convert("L"))
    image.save("output_image_path")


