


"""simple docstring"""






from __future__ import annotations

import re







def     lowerCamelCase_(						_lowerCamelCase    )  ->			List[Any]:
   '''simple docstring'''





   def alphanum_key(_lowerCamelCase    ):
      return [int(lowerCAmelCase_    ) if s.isdigit() else s.lower() for s in re.split("([0-9]+)"       ,						lowerCAmelCase_    )]

   return sorted(lowerCAmelCase_       ,						key=lowerCAmelCase_    )


if __name__ == "__main__":
  import doctest

  doctest.testmod()





from math import floor, sqrt



def 							_A   (						lowerCAmelCase_     :					int			):
     """simple docstring"""

     lowerCAmelCase__		= 0.0
     lowerCAmelCase__		= 1.0
     lowerCAmelCase__		= int(sqrt(lowerCAmelCase_			)			)
     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 							_A   (						lowerCAmelCase_     :					int = 1_0000			):
     """simple docstring"""

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


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