
"""simple docstring"""




def 			_lowerCAmelCase		(		_UpperCamelCase    ):






  """simple docstring"""



  _lowercase:      Optional[int]   			=  0
  while num > 0:
    digit_sum += num % 10
    num //= 10
  return digit_sum




def 			_lowerCAmelCase		(		_UpperCamelCase = 100    ):






  """simple docstring"""



  _lowercase:      List[str]   			=  1
  _lowercase:      Union[str, Any]   			=  2

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

  return sum_digits(_UpperCamelCase    )


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


"""simple docstring"""




from cva import destroyAllWindows, imread, imshow, waitKey




def 			_lowerCAmelCase		(		_UpperCamelCase    ):






  """simple docstring"""



  _lowercase			,					_lowercase:      Union[str, Any]   			=  img.shape[0], img.shape[1]

  # converting each pixel's color to its negative
  for i in range(_UpperCamelCase    ):
    for j in range(_UpperCamelCase    ):
      _lowercase:      Dict   			=  [255, 255, 255] - img[i][j]

  return img


if __name__ == "__main__":
  # read original image
  A__ :       Optional[Any]				= imread('image_data/lena.jpg', 1)

  # convert to its negative
  A__ :       Dict				= convert_to_negative(img)

  # show result image
  imshow('negative of original image', img)
  waitKey(0)
  destroyAllWindows()
