




import argparse
import logging
import sys
from unittest.mock import patch

import run_glue_with_pabee

from transformers.testing_utils import TestCasePlus


logging.basicConfig(level=logging.DEBUG)

a_      						=   logging.getLogger()




def     __SCREAMING_SNAKE_CASE      (     )				->		Any:

    """simple docstring"""


    __UpperCamelCase     						=  argparse.ArgumentParser()
    parser.add_argument('''-f'''					)
    __UpperCamelCase     						=  parser.parse_args()
    return args.f


class        _lowerCamelCase  (	_SCREAMING_SNAKE_CASE      ):

      """simple docstring"""

      def 					snake_case		(   self    :       List[str] ):
          __UpperCamelCase     						=  logging.StreamHandler(sys.stdout )
          logger.addHandler(snake_case )

          __UpperCamelCase     						=  self.get_auto_remove_tmp_dir()
          __UpperCamelCase     						=  F"\n            run_glue_with_pabee.py\n            --model_type albert\n            --model_name_or_path albert-base-v2\n            --data_dir ./tests/fixtures/tests_samples/MRPC/\n            --output_dir {tmp_dir}\n            --overwrite_output_dir\n            --task_name mrpc\n            --do_train\n            --do_eval\n            --per_gpu_train_batch_size=2\n            --per_gpu_eval_batch_size=1\n            --learning_rate=2e-5\n            --max_steps=50\n            --warmup_steps=2\n            --seed=42\n            --max_seq_length=128\n            ".split()

          with patch.object(snake_case       ,				'''argv'''       ,				snake_case ):
              __UpperCamelCase     						=  run_glue_with_pabee.main()
              for value in result.values():
                  self.assertGreaterEqual(snake_case       ,				0.75 )








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



