





"""simple docstring"""




def        a_				(							_lowercase = 20   ):

						try:
												_UpperCamelCase			:					Optional[int]     =    int(_lowercase   )
						except (TypeError, ValueError):
												raise TypeError('''Parameter n must be int or castable to int.'''   )
						if n <= 0:
												raise ValueError('''Parameter n must be greater than or equal to one.'''   )
						_UpperCamelCase			:					Optional[int]     =    0
						while 1:
												i += n * (n - 1)
												_UpperCamelCase			:					Union[str, Any]     =    0
												for j in range(2       ,						_lowercase   ):
																		if i % j != 0:
																								_UpperCamelCase			:					str     =    1
																								break
												if nfound == 0:
																		if i == 0:
																								_UpperCamelCase			:					str     =    1
																		return i
						return None


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





"""simple docstring"""

from math import floor, sqrt




def 			lowercase__  (    lowerCAmelCase :    int       )       ->					int:






    """simple docstring"""




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




def 			lowercase__  (    lowerCAmelCase :    int = 10_000       )       ->					int:






    """simple docstring"""




    UpperCAmelCase  	=    0
    for i in range(2       , n + 1       ):
        UpperCAmelCase  	=    sqrt(lowerCAmelCase       )
        if sr - floor(lowerCAmelCase       ) != 0 and continuous_fraction_period(lowerCAmelCase       ) % 2 == 1:
            count_odd_periods += 1
    return count_odd_periods


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



