



import platform
from argparse import ArgumentParser

import huggingface_hub
import pandas
import pyarrow

from datasets import __version__ as version
from datasets.commands import BaseDatasetsCLICommand





def 	__snake_case      (     _UpperCAmelCase							):
    return EnvironmentCommand()

class        _A			(      __UpperCAmelCase       ):



       @staticmethod
       def 						_lowerCamelCase     (						__SCREAMING_SNAKE_CASE				:	ArgumentParser):


           '''simple docstring'''

           __a					=							parser.add_parser('''env'''	,						help='''Print relevant system environment info.''')
           download_parser.set_defaults(func=__SCREAMING_SNAKE_CASE)



       def 						_lowerCamelCase     (						self				:	List[str]):


           '''simple docstring'''

           __a					=							{
               '''`datasets` version''': version,
               '''Platform''': platform.platform(),
               '''Python version''': platform.python_version(),
               '''Huggingface_hub version''': huggingface_hub.__version__,
               '''PyArrow version''': pyarrow.__version__,
               '''Pandas version''': pandas.__version__,
           }

           print('''\nCopy-and-paste the text below in your GitHub issue.\n''')
           print(self.format_dict(__SCREAMING_SNAKE_CASE))

           return info





       @staticmethod
       def 						_lowerCamelCase     (						__SCREAMING_SNAKE_CASE				:	str):


           '''simple docstring'''

           return "\n".join([F'- {prop}: {val}' for prop, val in d.items()]) + "\n"










from math import floor, sqrt





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





def 	__snake_case      (     _UpperCAmelCase = 10000							):
    __a					=							0
    for i in range(2  ,					n + 1							):
        __a					=							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()))}')





