

from math import floor, sqrt







def 						_snake_case		(     SCREAMING_SNAKE_CASE					)							->   int:

     """simple docstring"""







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







def 						_snake_case		(     SCREAMING_SNAKE_CASE = 10000					)							->   int:

     """simple docstring"""







     _lowerCAmelCase :       Dict	   =     0
     for i in range(2		,				n + 1					):
          _lowerCAmelCase :       Tuple	   =     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()))}''')










from typing import TYPE_CHECKING

from ...utils import _LazyModule


__lowerCAmelCase									=				{'''tokenization_phobert''': ['''PhobertTokenizer''']}


if TYPE_CHECKING:
 from .tokenization_phobert import PhobertTokenizer

else:
 import sys

 __lowerCAmelCase									=				_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)


