
"""simple docstring"""

import copy

from transformers.configuration_utils import PretrainedConfig
from transformers.utils import logging


SCREAMING_SNAKE_CASE_			    =  logging.get_logger(__name__)
class    _UpperCAmelCase							(						SCREAMING_SNAKE_CASE_							):
      __SCREAMING_SNAKE_CASE      :							Tuple												=		"hybrid-clip"
      __SCREAMING_SNAKE_CASE      :							Optional[Any]												=		True




      def __init__(							self      ,				lowercase_=5_1_2      ,				**lowercase_							)  ->    Optional[Any]:
          super().__init__(**lowercase_							)

          if "text_config" not in kwargs:
              raise ValueError('`text_config` can not be `None`.'							)

          if "vision_config" not in kwargs:
              raise ValueError('`vision_config` can not be `None`.'							)

          UpperCAmelCase  	=    kwargs.pop('text_config'							)
          UpperCAmelCase  	=    kwargs.pop('vision_config'							)

          UpperCAmelCase  	=    text_config.pop('model_type'							)
          UpperCAmelCase  	=    vision_config.pop('model_type'							)

          from transformers import AutoConfig

          UpperCAmelCase  	=    AutoConfig.for_model(lowercase_      ,				**lowercase_							)

          if vision_model_type == "clip":
              UpperCAmelCase  	=    AutoConfig.for_model(lowercase_      ,				**lowercase_							).vision_config
          elif vision_model_type == "clip_vision_model":
              from transformers import CLIPVisionConfig

              UpperCAmelCase  	=    CLIPVisionConfig(**lowercase_							)
          else:
              UpperCAmelCase  	=    AutoConfig.for_model(lowercase_      ,				**lowercase_							)

          UpperCAmelCase  	=    projection_dim
          UpperCAmelCase  	=    1.0




      @classmethod
      def 			a_					(							cls      ,				lowercase_      ,				lowercase_      ,				**lowercase_							)  ->    Optional[Any]:
          return cls(text_config=text_config.to_dict()      ,				vision_config=vision_config.to_dict()      ,				**lowercase_							)




      def 			a_					(							self							)  ->    Union[str, Any]:
          UpperCAmelCase  	=    copy.deepcopy(self.__dict__							)
          UpperCAmelCase  	=    self.text_config.to_dict()
          UpperCAmelCase  	=    self.vision_config.to_dict()
          UpperCAmelCase  	=    self.__class__.model_type
          return output





"""simple docstring"""

from math import floor, sqrt




def 			lowercase__  (    lowerCAmelCase :    int       )       ->					int:






    """simple docstring"""




    UpperCAmelCase  	=    0.0
    UpperCAmelCase  	=    1.0
    UpperCAmelCase  	=    int(sqrt(lowerCAmelCase       )       )
    UpperCAmelCase  	=    root
    UpperCAmelCase  	=    0
    while integer_part != 2 * root:
        UpperCAmelCase  	=    denominator * integer_part - numerator
        UpperCAmelCase  	=    (n - numerator**2) / denominator
        UpperCAmelCase  	=    int((root + numerator) / denominator       )
        period += 1
    return period




def 			lowercase__  (    lowerCAmelCase :    int = 10_000       )       ->					int:






    """simple docstring"""




    UpperCAmelCase  	=    0
    for i in range(2       , n + 1       ):
        UpperCAmelCase  	=    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()))}')



