
"""simple docstring"""




from math import floor, sqrt

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

def   UpperCamelCase_  (		SCREAMING_SNAKE_CASE_ = 1_0_0_0_0			):
					SCREAMING_SNAKE_CASE				=	0
					for i in range(2,     n + 1			):
										SCREAMING_SNAKE_CASE				=	sqrt(SCREAMING_SNAKE_CASE_			)
										if sr - floor(SCREAMING_SNAKE_CASE_			) != 0 and continuous_fraction_period(SCREAMING_SNAKE_CASE_			) % 2 == 1:
															count_odd_periods += 1
					return count_odd_periods


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


"""simple docstring"""




def   UpperCamelCase_  (		SCREAMING_SNAKE_CASE_			):
					if not isinstance(SCREAMING_SNAKE_CASE_,     SCREAMING_SNAKE_CASE_			):
										SCREAMING_SNAKE_CASE				=	(
										    'operation can not be conducted on a object of type '
										    f'''{type(SCREAMING_SNAKE_CASE_			).__name__}'''
										)
										raise TypeError(SCREAMING_SNAKE_CASE_			)
					SCREAMING_SNAKE_CASE				=	''
					for _ in range(0,     3_2			):
										bit_string += str(number % 2			)
										SCREAMING_SNAKE_CASE				=	number >> 1
					return bit_string

def   UpperCamelCase_  (		SCREAMING_SNAKE_CASE_			):
					if number < 0:
										raise ValueError('the value of input must be positive'			)
					elif isinstance(SCREAMING_SNAKE_CASE_,     SCREAMING_SNAKE_CASE_			):
										raise TypeError('Input value must be a \'int\' type'			)
					elif isinstance(SCREAMING_SNAKE_CASE_,     SCREAMING_SNAKE_CASE_			):
										raise TypeError('\'<\' not supported between instances of \'str\' and \'int\''			)
					SCREAMING_SNAKE_CASE				=	0
					# iterator over [1 to 32],since we are dealing with 32 bit integer
					for _ in range(1,     3_3			):
										# left shift the bits by unity
										SCREAMING_SNAKE_CASE				=	result << 1
										# get the end bit
										SCREAMING_SNAKE_CASE				=	number % 2
										# right shift the bits by unity
										SCREAMING_SNAKE_CASE				=	number >> 1
										# add that bit to our ans
										SCREAMING_SNAKE_CASE				=	result | end_bit
					return get_reverse_bit_string(SCREAMING_SNAKE_CASE_			)


if __name__ == "__main__":
	import doctest

	doctest.testmod()
