






import cva
import numpy as np




class 		UpperCAmelCase_						:


						'''simple docstring'''




						def __init__(	self		,				_SCREAMING_SNAKE_CASE		,				_SCREAMING_SNAKE_CASE				) ->				Union[str, Any]:

								if k in (0.04, 0.06):
										snake_case_				:							List[str]						 =       k
										snake_case_				:							Dict						 =       window_size
								else:
										raise ValueError("invalid k value"				)






						def __str__(	self				) ->				str:
								return str(self.k				)






						def       _lowerCAmelCase       (	self		,				_SCREAMING_SNAKE_CASE				) ->				tuple[cva.Mat, list[list[int]]]:
								snake_case_				:							Any						 =       cva.imread(_SCREAMING_SNAKE_CASE		,				0				)
								snake_case_ ,       snake_case_				:							Dict						 =       img.shape
								snake_case_				:							list[list[int]]						 =       []
								snake_case_				:							Union[str, Any]						 =       img.copy()
								snake_case_				:							Any						 =       cva.cvtColor(_SCREAMING_SNAKE_CASE		,				cva.COLOR_GRAY2RGB				)
								snake_case_ ,       snake_case_				:							Tuple						 =       np.gradient(_SCREAMING_SNAKE_CASE				)
								snake_case_				:							List[Any]						 =       dx**2
								snake_case_				:							str						 =       dy**2
								snake_case_				:							int						 =       dx * dy
								snake_case_				:							str						 =       0.04
								snake_case_				:							Dict						 =       self.window_size // 2
								for y in range(_SCREAMING_SNAKE_CASE		,				h - offset				):
										for x in range(_SCREAMING_SNAKE_CASE		,				w - offset				):
												snake_case_				:							Any						 =       ixx[
												    y - offset : y + offset + 1, x - offset : x + offset + 1
												].sum()
												snake_case_				:							Dict						 =       iyy[
												    y - offset : y + offset + 1, x - offset : x + offset + 1
												].sum()
												snake_case_				:							Any						 =       ixy[
												    y - offset : y + offset + 1, x - offset : x + offset + 1
												].sum()

												snake_case_				:							Optional[int]						 =       (wxx * wyy) - (wxy**2)
												snake_case_				:							Optional[int]						 =       wxx + wyy
												snake_case_				:							Optional[Any]						 =       det - k * (trace**2)
												# Can change the value
												if r > 0.5:
														corner_list.append([x, y, r]				)
														color_img.itemset((y, x, 0)		,				0				)
														color_img.itemset((y, x, 1)		,				0				)
														color_img.itemset((y, x, 2)		,				255				)
								return color_img, corner_list


if __name__ == "__main__":
							lowercase  :							Union[str, Any]			  =    HarrisCorner(0.04, 3)
							lowercase  ,lowercase  :							Any			  =    edge_detect.detect('''path_to_image''')
							cva.imwrite('''detect.png''', color_img)








def      lowerCAmelCase__	(    _a       :			int    ):
		snake_case_				:							str						 =       1
		for i in range(1  ,      num + 1    ):
				fact *= i
		return fact

def      lowerCAmelCase__	(    _a       :			int    ):
		snake_case_				:							List[str]						 =       0
		while number > 0:
				snake_case_				:							Dict						 =       number % 10
				sum_of_digits += last_digit
				snake_case_				:							List[Any]						 =       number // 10  # Removing the last_digit from the given number
		return sum_of_digits

def      lowerCAmelCase__	(    _a       :			int = 1_00    ):
		snake_case_				:							Optional[Any]						 =       factorial(_a    )
		snake_case_				:							Optional[int]						 =       split_and_add(_a    )
		return result


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