



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





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


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

 # get values with two different mask size
 __snake_case		:List[Any] 						=	median_filter(gray, 3)
 __snake_case		:Optional[Any] 						=	median_filter(gray, 5)

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










from math import floor, sqrt





def 	__snake_case      (     _UpperCAmelCase							):
    __a					=							0.0
    __a					=							1.0
    __a					=							int(sqrt(_UpperCAmelCase							)							)
    __a					=							root
    __a					=							0
    while integer_part != 2 * root:
        __a					=							denominator * integer_part - numerator
        __a					=							(n - numerator**2) / denominator
        __a					=							int((root + numerator) / denominator							)
        period += 1
    return period





def 	__snake_case      (     _UpperCAmelCase = 10000							):
    __a					=							0
    for i in range(2  ,					n + 1							):
        __a					=							sqrt(_UpperCAmelCase							)
        if sr - floor(_UpperCAmelCase							) != 0 and continuous_fraction_period(_UpperCAmelCase							) % 2 == 1:
            count_odd_periods += 1
    return count_odd_periods


if __name__ == "__main__":
 print(f'{solution(int(input().strip()))}')





