


'''simple docstring'''
from cva import COLOR_BGR2GRAY, cvtColor, imread, imshow, waitKey
from numpy import divide, inta, multiply, ravel, sort, zeros_like




def      __snake_case       (       lowerCamelCase_ :				List[Any]	,  lowerCamelCase_ :				List[str]=3						):
				'''simple docstring'''




				__magic_name__	  = int(mask / 2						)
				# copy image size
				__magic_name__	  = zeros_like(lowerCamelCase_						)
				for i in range(lowerCamelCase_	,  gray_img.shape[0] - bd						):
								for j in range(lowerCamelCase_	,  gray_img.shape[1] - bd						):
												# get mask according with mask
												__magic_name__	  = ravel(gray_img[i - bd : i + bd + 1, j - bd : j + bd + 1]						)
												# calculate mask median
												__magic_name__	  = sort(lowerCamelCase_						)[inta(divide((multiply(lowerCamelCase_	,  lowerCamelCase_						))	,  2						) + 1						)]
												__magic_name__	  = median
				return median_img


if __name__ == "__main__":
						# read original image
						__magic_name__   :   Union[str, Any]  							=imread('../image_data/lena.jpg')
						# turn image in gray scale value
						__magic_name__   :   List[Any]  							=cvtColor(img, COLOR_BGR2GRAY)

						# get values with two different mask size
						__magic_name__   :   Any  							=median_filter(gray, 3)
						__magic_name__   :   Dict  							=median_filter(gray, 5)

						# show result images
						imshow('median filter with 3x3 mask', medianaxa)
						imshow('median filter with 5x5 mask', medianaxa)
						waitKey(0)







'''simple docstring'''
def      __snake_case       (       lowerCamelCase_ :				int = 100						):
				'''simple docstring'''




				__magic_name__	  = [[0 for _ in range(lowerCamelCase_						)] for _ in range(m + 1						)]
				for i in range(m + 1						):
								__magic_name__	  = 1

				for n in range(m + 1						):
								for k in range(1	,  lowerCamelCase_						):
												memo[n][k] += memo[n][k - 1]
												if n > k:
																memo[n][k] += memo[n - k - 1][k]

				return memo[m][m - 1] - 1


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



