



'''simple docstring'''

import os






def    __lowercase	():
				SCREAMING_SNAKE_CASE	:    str          =			os.path.join(os.path.dirname(_SCREAMING_SNAKE_CASE							)     ,						'''num.txt'''							)
				with open(_SCREAMING_SNAKE_CASE							) as file_hand:
								return str(sum(int(_SCREAMING_SNAKE_CASE							) for line in file_hand							)							)[:10]


if __name__ == "__main__":
	print(solution())








'''simple docstring'''






def    _snake_case  (	A			)		->       int:
							if n == 1 or not isinstance(A					,       A			):
														return 0
							elif n == 2:
														return 1
							else:
														lowerCAmelCase__			  =      [0, 1]
														for i in range(2					,       n + 1			):
																					sequence.append(sequence[i - 1] + sequence[i - 2]			)

														return sequence[n]


def    _snake_case  (	A			)		->       int:
							lowerCAmelCase__			  =      0
							lowerCAmelCase__			  =      2

							while digits < n:
														index += 1
														lowerCAmelCase__			  =      len(str(fibonacci(A			)			)			)

							return index


def    _snake_case  (	A = 1000			)		->       int:
							return fibonacci_digits_index(A			)


if __name__ == "__main__":
		print(solution(int(str(input()).strip())))