
'''simple docstring'''





from math import floor, sqrt







def snake_case_    (				lowercase__		):
  UpperCAmelCase__			:				Union[str, Any]												=       0.0
  UpperCAmelCase__			:				str												=       1.0
  UpperCAmelCase__			:				Union[str, Any]												=       int(sqrt(lowercase__		)		)
  UpperCAmelCase__			:				List[Any]												=       root
  UpperCAmelCase__			:				List[Any]												=       0
  while integer_part != 2 * root:
    UpperCAmelCase__			:				List[Any]												=       denominator * integer_part - numerator
    UpperCAmelCase__			:				Optional[int]												=       (n - numerator**2) / denominator
    UpperCAmelCase__			:				Any												=       int((root + numerator) / denominator		)
    period += 1
  return period







def snake_case_    (				lowercase__ = 1_0_0_0_0		):
  UpperCAmelCase__			:				int												=       0
  for i in range(2      ,					n + 1		):
    UpperCAmelCase__			:				List[Any]												=       sqrt(lowercase__		)
    if sr - floor(lowercase__		) != 0 and continuous_fraction_period(lowercase__		) % 2 == 1:
      count_odd_periods += 1
  return count_odd_periods


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





'''simple docstring'''





from math import cos, sin







def snake_case_    (				lowercase__		):
  UpperCAmelCase__			:				List[Any]												=       float(lowercase__		)
  return [[scaling_factor * int(x == y		) for x in range(2		)] for y in range(2		)]







def snake_case_    (				lowercase__		):
  UpperCAmelCase__					, UpperCAmelCase__			:				List[Any]												=       cos(lowercase__		), sin(lowercase__		)
  return [[c, -s], [s, c]]







def snake_case_    (				lowercase__		):
  UpperCAmelCase__					, UpperCAmelCase__			:				Dict												=       cos(lowercase__		), sin(lowercase__		)
  UpperCAmelCase__			:				Tuple												=       c * s
  return [[c * c, cs], [cs, s * s]]







def snake_case_    (				lowercase__		):
  UpperCAmelCase__					, UpperCAmelCase__			:				Dict												=       cos(lowercase__		), sin(lowercase__		)
  UpperCAmelCase__			:				Any												=       c * s
  return [[2 * c - 1, 2 * cs], [2 * cs, 2 * s - 1]]


print(F'    {scaling(5) = }')
print(F'  {rotation(4_5) = }')
print(F'{projection(4_5) = }')






print(F'{reflection(4_5) = }')



