






'''simple docstring'''


from math import floor, sqrt



def    _SCREAMING_SNAKE_CASE    (			UpperCamelCase__						:				int							):




     """simple docstring"""


     a_    :       Optional[int]    	=     0.0
     a_    :       int    	=     1.0
     a_    :       Optional[int]    	=     int(sqrt(UpperCamelCase__							)							)
     a_    :       Union[str, Any]    	=     root
     a_    :       Optional[int]    	=     0
     while integer_part != 2 * root:
          a_    :       Optional[Any]    	=     denominator * integer_part - numerator
          a_    :       Tuple    	=     (n - numerator**2) / denominator
          a_    :       Tuple    	=     int((root + numerator) / denominator							)
          period += 1
     return period



def    _SCREAMING_SNAKE_CASE    (			UpperCamelCase__						:				int = 1_0000							):




     """simple docstring"""


     a_    :       List[str]    	=     0
     for i in range(2   ,						n + 1							):
          a_    :       Any    	=     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()))}")






'''simple docstring'''


from .stack import Stack



def    _SCREAMING_SNAKE_CASE    (			UpperCamelCase__						:				str							):




     """simple docstring"""


     a_    :       Stack[str]    	=     Stack()
     a_    :       Tuple    	=     {"""(""": """)""", """[""": """]""", """{""": """}"""}
     for bracket in parentheses:
          if bracket in bracket_pairs:
               stack.push(UpperCamelCase__							)
          elif bracket in (")", "]", "}"):
               if stack.is_empty() or bracket_pairs[stack.pop()] != bracket:
                    return False
     return stack.is_empty()


if __name__ == "__main__":
 from doctest import testmod

 testmod()

 lowerCAmelCase_			:     Any							    =     ['((()))', '((())', '(()))']
 print('Balanced parentheses demonstration:\n')
 for example in examples:
  lowerCAmelCase_			:     Optional[Any]							    =     '' if balanced_parentheses(example) else 'not '
  print(f"{example} is {not_str}balanced")
