





import os
from string import ascii_letters

__A       :					Optional[int]     					=     ascii_letters + " \t\n"





def 		__SCREAMING_SNAKE_CASE						(       )						->       dict[str, None]:







			'''simple docstring'''

			UpperCAmelCase     	=       os.path.split(os.path.realpath(UpperCamelCase__				)				)
			UpperCAmelCase     	=       {}
			with open(path[0] + '''/dictionary.txt'''				) as dictionary_file:
						for word in dictionary_file.read().split('''\n'''				):
									UpperCAmelCase     	=       None
			return english_words


__A       :					Dict     					=     load_dictionary()





def 		__SCREAMING_SNAKE_CASE						(       UpperCamelCase__				)						->       float:







			'''simple docstring'''

			UpperCAmelCase     	=       message.upper()
			UpperCAmelCase     	=       remove_non_letters(UpperCamelCase__				)
			UpperCAmelCase     	=       message.split()
			UpperCAmelCase     	=       len([word for word in possible_words if word in ENGLISH_WORDS]				)
			return float(UpperCamelCase__				) / len(UpperCamelCase__				)





def 		__SCREAMING_SNAKE_CASE						(       UpperCamelCase__				)						->       str:







			'''simple docstring'''

			return "".join(symbol for symbol in message if symbol in LETTERS_AND_SPACE				)





def 		__SCREAMING_SNAKE_CASE						(       UpperCamelCase__    ,    UpperCamelCase__ = 20    ,    UpperCamelCase__ = 85				)						->       bool:







			'''simple docstring'''

			UpperCAmelCase     	=       get_english_count(UpperCamelCase__				) * 100 >= word_percentage
			UpperCAmelCase     	=       len(remove_non_letters(UpperCamelCase__				)				)
			UpperCAmelCase     	=       (float(UpperCamelCase__				) / len(UpperCamelCase__				)) * 100
			UpperCAmelCase     	=       message_letters_percentage >= letter_percentage
			return words_match and letters_match


if __name__ == "__main__":
				import doctest

				doctest.testmod()









from math import floor, sqrt





def 		__SCREAMING_SNAKE_CASE						(       UpperCamelCase__				)						->       int:







			'''simple docstring'''

			UpperCAmelCase     	=       0.0
			UpperCAmelCase     	=       1.0
			UpperCAmelCase     	=       int(sqrt(UpperCamelCase__				)				)
			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 		__SCREAMING_SNAKE_CASE						(       UpperCamelCase__ = 1_0000				)						->       int:







			'''simple docstring'''

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



