



'''simple docstring'''


from __future__ import annotations






def 			UpperCAmelCase_							(		lowercase__							):


     '''simple docstring'''







     assert (
         isinstance(lowercase__							,						lowercase__							) and mask > 0
     ), F"""mask needs to be positive integer, your input {mask}"""
     a_									=[]
     a_									=mask

     while submask:
          all_submasks.append(lowercase__							)
          a_									=(submask - 1) & mask

     return all_submasks


if __name__ == "__main__":
  import doctest

  doctest.testmod()







'''simple docstring'''


from math import floor, sqrt






def 			UpperCAmelCase_							(		lowercase__							):


     '''simple docstring'''







     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 			UpperCAmelCase_							(		lowercase__ = 1_0_0_0_0							):


     '''simple docstring'''







     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()))}""")


