





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


SCREAMING_SNAKE_CASE_      :			List[str]		  =      logging.get_logger(__name__)

SCREAMING_SNAKE_CASE_      :			Optional[Any]		  =      {
    '''facebook/opt-125m''': '''https://huggingface.co/facebook/opt-125m/blob/main/config.json''',
    '''facebook/opt-350m''': '''https://huggingface.co/facebook/opt-350m/blob/main/config.json''',
    '''facebook/opt-1.3b''': '''https://huggingface.co/facebook/opt-1.3b/blob/main/config.json''',
    '''facebook/opt-2.7b''': '''https://huggingface.co/facebook/opt-2.7b/blob/main/config.json''',
    '''facebook/opt-6.7b''': '''https://huggingface.co/facebook/opt-6.7b/blob/main/config.json''',
    '''facebook/opt-13b''': '''https://huggingface.co/facebook/opt-13b/blob/main/config.json''',
}

class 		snake_case_      (       A_	):







	'''simple docstring'''
	__UpperCamelCase        =		'''opt'''
	__UpperCamelCase        =		['''past_key_values''']




	def __init__(	self       :    List[Any]				,			__lowerCamelCase       :    Dict=50_272				,			__lowerCamelCase       :    Any=768				,			__lowerCamelCase       :    Dict=12				,			__lowerCamelCase       :    int=3_072				,			__lowerCamelCase       :    List[Any]=2_048				,			__lowerCamelCase       :    Union[str, Any]=True				,			__lowerCamelCase       :    List[str]=False				,			__lowerCamelCase       :    List[Any]=None				,			__lowerCamelCase       :    List[Any]=0.1				,			__lowerCamelCase       :    Union[str, Any]=0.0				,			__lowerCamelCase       :    List[Any]=12				,			__lowerCamelCase       :    int="relu"				,			__lowerCamelCase       :    Tuple=0.0				,			__lowerCamelCase       :    Any=0.02				,			__lowerCamelCase       :    str=True				,			__lowerCamelCase       :    Union[str, Any]=1				,			__lowerCamelCase       :    Dict=2				,			__lowerCamelCase       :    Tuple=2				,			__lowerCamelCase       :    Union[str, Any]=True				,			__lowerCamelCase       :    Union[str, Any]=True				,			**__lowerCamelCase       :    Optional[int]				,			)					->   str:

			'''simple docstring'''




			super().__init__(
			    pad_token_id=__lowerCamelCase				,			bos_token_id=__lowerCamelCase				,			eos_token_id=__lowerCamelCase				,			**__lowerCamelCase				,			)
			__lowercase					=    vocab_size
			__lowercase					=    max_position_embeddings
			__lowercase					=    num_attention_heads
			__lowercase					=    word_embed_proj_dim if word_embed_proj_dim is not None else hidden_size
			__lowercase					=    ffn_dim
			__lowercase					=    hidden_size
			__lowercase					=    num_hidden_layers
			__lowercase					=    dropout
			__lowercase					=    attention_dropout
			__lowercase					=    activation_function
			__lowercase					=    init_std
			__lowercase					=    layerdrop
			__lowercase					=    use_cache
			__lowercase					=    do_layer_norm_before
			# We keep these variables at `True` for backward compatibility.
			__lowercase					=    enable_bias
			__lowercase					=    layer_norm_elementwise_affine

			# Note that the only purpose of `_remove_final_layer_norm` is to keep backward compatibility
			# with checkpoints that have been fine-tuned before transformers v4.20.1
			# see https://github.com/facebookresearch/metaseq/pull/164
			__lowercase					=    _remove_final_layer_norm











from math import floor, sqrt



def    SCREAMING_SNAKE_CASE							(			snake_case       )		->						int:
		__lowercase					=    0.0
		__lowercase					=    1.0
		__lowercase					=    int(sqrt(snake_case       )       )
		__lowercase					=    root
		__lowercase					=    0
		while integer_part != 2 * root:
				__lowercase					=    denominator * integer_part - numerator
				__lowercase					=    (n - numerator**2) / denominator
				__lowercase					=    int((root + numerator) / denominator       )
				period += 1
		return period



def    SCREAMING_SNAKE_CASE							(			snake_case = 10_000       )		->						int:
		__lowercase					=    0
		for i in range(2	,      n + 1       ):
				__lowercase					=    sqrt(snake_case       )
				if sr - floor(snake_case       ) != 0 and continuous_fraction_period(snake_case       ) % 2 == 1:
						count_odd_periods += 1
		return count_odd_periods


if __name__ == "__main__":
		print(F"""{solution(int(input().strip()))}""")




