


"""simple docstring"""


from math import floor, sqrt






def   a__			(					__lowercase )						->						int:
				_A       	=      0.0
				_A       	=      1.0
				_A       	=      int(sqrt(__lowercase ) )
				_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   a__			(					__lowercase = 1_0000 )						->						int:
				_A       	=      0
				for i in range(2  ,      n + 1 ):
								_A       	=      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"""


import unittest
from pathlib import Path
from tempfile import TemporaryDirectory
from unittest.mock import Mock, patch

import diffusers.utils.hub_utils
class snake_case   (	unittest.TestCase):







		@patch("diffusers.utils.hub_utils.get_full_repo_name"		)
		def 			a_			(       self   :							Any     , a__   :							Mock		)							->    None:





						'''simple docstring'''







						_A       	=      "full_repo_name"
						with TemporaryDirectory() as tmpdir:
										# Dummy args values
										_A       	=      Mock()
										_A       	=      tmpdir
										_A       	=      0
										_A       	=      "hub_token"
										_A       	=      "dataset_name"
										_A       	=      0.0_1
										_A       	=      10_00_00
										_A       	=      1_00_00
										_A       	=      0.0_1
										_A       	=      0.0_2
										_A       	=      0.0_3
										_A       	=      0.0_0_0_5
										_A       	=      0.0_0_0_0_0_1
										_A       	=      1
										_A       	=      10
										_A       	=      0.0_0_1
										_A       	=      0.1
										_A       	=      0.2
										_A       	=      True

										# Model card mush be rendered and saved
										diffusers.utils.hub_utils.create_model_card(a__     , model_name="model_name"		)
										self.assertTrue((Path(a__		) / "README.md").is_file()		)