




from __future__ import annotations

from typing import Any






class       A      :
     """simple docstring"""

     def __init__(     self	: int						,	A__	: str						,	A__	: Any      )					->							Optional[Any]:  # noqa: A002
           lowerCamelCase__   	=					item
           lowerCamelCase__   	=					next






class       A      :
     """simple docstring"""

     def __init__(     self	: Optional[int]      )					->							Union[str, Any]:
           lowerCamelCase__   	=					None
           lowerCamelCase__   	=					0




     def 			__snake_case (     self	: Union[str, Any]						,	A__	: Any      )					->							Union[str, Any]:
           lowerCamelCase__   	=					Node(UpperCAmelCase_						,	self.head      )
           self.size += 1




     def 			__snake_case (     self	: str      )					->							Union[str, Any]:
           # Switched 'self.is_empty()' to 'self.head is None'
           # because mypy was considering the possibility that 'self.head'
           # can be None in below else part and giving error
           if self.head is None:
                 return None
           else:
                 lowerCamelCase__   	=					self.head.item
                 lowerCamelCase__   	=					self.head.next
                 self.size -= 1
                 return item




     def 			__snake_case (     self	: List[str]      )					->							Any:
           return self.head is None




     def __str__(     self	: Optional[Any]      )					->							Any:
           if self.is_empty():
                 return ""
           else:
                 lowerCamelCase__   	=					self.head
                 lowerCamelCase__   	=					""""""
                 lowerCamelCase__   	=					[]
                 while iterate:
                       item_list.append(str(iterate.item      )      )
                       lowerCamelCase__   	=					iterate.next

                 lowerCamelCase__   	=					""" --> """.join(UpperCAmelCase_      )

                 return item_str




     def __len__(     self	: List[str]      )					->							Union[str, Any]:
           return self.size




"""simple docstring"""







from math import floor, sqrt


def  __SCREAMING_SNAKE_CASE (  __UpperCAmelCase      ):
		_lowercase				: Optional[int]     =   0.0
		_lowercase				: Dict     =   1.0
		_lowercase				: Optional[int]     =   int(sqrt(__UpperCAmelCase      )      )
		_lowercase				: Optional[Any]     =   root
		_lowercase				: Dict     =   0
		while integer_part != 2 * root:
				_lowercase				: str     =   denominator * integer_part - numerator
				_lowercase				: Optional[int]     =   (n - numerator**2) / denominator
				_lowercase				: List[str]     =   int((root + numerator) / denominator      )
				period += 1
		return period


def  __SCREAMING_SNAKE_CASE (  __UpperCAmelCase = 10000      ):
		_lowercase				: List[str]     =   0
		for i in range(2   ,				n + 1      ):
				_lowercase				: Dict     =   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()))}')



