
'''simple docstring'''







from math import floor, sqrt







def   lowerCAmelCase(  a__    :  int      ):







       '''simple docstring'''






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







def   lowerCAmelCase(  a__    :  int = 1_0000      ):







       '''simple docstring'''






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


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



'''simple docstring'''







from ..utils import DummyObject, requires_backends







class 		snake_case_       (						metaclass=A__						):



   """simple docstring"""





   __lowerCAmelCase	:							List[str]								=['''torch''', '''librosa''']







   def __init__( self			,   *UpperCamelCase			,   **UpperCamelCase):
          requires_backends(self			,   ["torch", "librosa"])







   @classmethod
   def     __UpperCAmelCase      ( cls			,   *UpperCamelCase			,   **UpperCamelCase):
          requires_backends(cls			,   ["torch", "librosa"])







   @classmethod
   def     __UpperCAmelCase      ( cls			,   *UpperCamelCase			,   **UpperCamelCase):
          requires_backends(cls			,   ["torch", "librosa"])







class 		snake_case_       (						metaclass=A__						):



   """simple docstring"""





   __lowerCAmelCase	:							Union[str, Any]								=['''torch''', '''librosa''']







   def __init__( self			,   *UpperCamelCase			,   **UpperCamelCase):
          requires_backends(self			,   ["torch", "librosa"])







   @classmethod
   def     __UpperCAmelCase      ( cls			,   *UpperCamelCase			,   **UpperCamelCase):
          requires_backends(cls			,   ["torch", "librosa"])







   @classmethod
   def     __UpperCAmelCase      ( cls			,   *UpperCamelCase			,   **UpperCamelCase):
          requires_backends(cls			,   ["torch", "librosa"])

