




import warnings

from ...utils import logging
from .image_processing_layoutlmva import LayoutLMvaImageProcessor


UpperCamelCase								=     logging.get_logger(__name__)





class  __lowerCamelCase       (    UpperCamelCase__    ):




    """simple docstring"""

    def __init__(       self     :     Optional[int]   ,	*SCREAMING_SNAKE_CASE__     :     int   ,	**SCREAMING_SNAKE_CASE__     :     List[str]   )      ->       None:
         warnings.warn(
             "The class LayoutLMv3FeatureExtractor is deprecated and will be removed in version 5 of Transformers."
             " Please use LayoutLMv3ImageProcessor instead."   ,	SCREAMING_SNAKE_CASE__   ,	)
         super().__init__(*SCREAMING_SNAKE_CASE__   ,	**SCREAMING_SNAKE_CASE__   )






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