


"""simple docstring"""






def 			A__		(					_UpperCAmelCase    :      int	)							->	List[Any]:

	'''simple docstring'''


	return n * (2 * n - 1)



def 			A__		(					_UpperCAmelCase    :      Any	)							->	int:

	'''simple docstring'''


	snake_case__  :						int		=      (1 + 24 * n) ** 0.5
	return ((1 + root) / 6) % 1 == 0



def 			A__		(					_UpperCAmelCase    :      Dict = 1_44	)							->	Any:

	'''simple docstring'''


	snake_case__  :						Union[str, Any]		=      start
	snake_case__  :						Tuple		=      hexagonal_num(_UpperCAmelCase	)
	while not is_pentagonal(_UpperCAmelCase	):
		n += 1
		snake_case__  :						List[str]		=      hexagonal_num(_UpperCAmelCase	)
	return num


if __name__ == "__main__":
					print(f"{solution()} = ")










from math import floor, sqrt





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





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





