





import numpy as np

__A       :					Optional[int]     					=     [
    ["a", "b", "c", "d", "e"],
    ["f", "g", "h", "i", "k"],
    ["l", "m", "n", "o", "p"],
    ["q", "r", "s", "t", "u"],
    ["v", "w", "x", "y", "z"],
]

class 			A_ :
	def __init__(					self	):






				'''simple docstring'''







				UpperCAmelCase     	=       np.array(_A	)
	def   _lowercase       (					self							,      _A	):






				'''simple docstring'''







				UpperCAmelCase     	=       np.where(letter == self.SQUARE	)
				UpperCAmelCase     	=       np.concatenate([indexa + 1, indexa + 1]	)
				return indexes
	def   _lowercase       (					self							,      _A							,      _A	):






				'''simple docstring'''







				return self.SQUARE[indexa - 1, indexa - 1]
	def   _lowercase       (					self							,      _A	):






				'''simple docstring'''







				UpperCAmelCase     	=       message.lower()
				UpperCAmelCase     	=       message.replace('''j'''							,      '''i'''	)

				UpperCAmelCase     	=       ''
				for letter_index in range(len(_A	)	):
							if message[letter_index] != " ":
										UpperCAmelCase     	=       self.letter_to_numbers(message[letter_index]	)
										UpperCAmelCase     	=       encoded_message + str(numbers[0]	) + str(numbers[1]	)
							elif message[letter_index] == " ":
										UpperCAmelCase     	=       encoded_message + ' '

				return encoded_message







	def   _lowercase       (					self							,      _A	):






				'''simple docstring'''







				UpperCAmelCase     	=       message.replace(''' '''							,      '''  '''	)
				UpperCAmelCase     	=       ''
				for numbers_index in range(int(len(_A	) / 2	)	):
							if message[numbers_index * 2] != " ":
										UpperCAmelCase     	=       message[numbers_index * 2]
										UpperCAmelCase     	=       message[numbers_index * 2 + 1]

										UpperCAmelCase     	=       self.numbers_to_letter(int(_A	)							,      int(_A	)	)
										UpperCAmelCase     	=       decoded_message + letter
							elif message[numbers_index * 2] == " ":
										UpperCAmelCase     	=       decoded_message + ' '

				return decoded_message









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



