




from __future__ import annotations


def 		lowerCamelCase__       (						_A				):







	'''simple docstring'''





	if not nums:
		return 0
	snake_case_						       =	nums[0]
	snake_case_						       =	0
	for num in nums[1:]:
		snake_case_       , snake_case_						       =	(
		    max_excluding + num,
		    max(_A	,      _A				),
		)
	return max(_A	,      _A				)


if __name__ == "__main__":
		import doctest

		doctest.testmod()

"""simple docstring"""


from collections.abc import Generator






def      __UpperCAmelCase       (      ):







  """simple docstring"""
  _UpperCAmelCase			,					_UpperCAmelCase    			=   0, 1
  while True:
    _UpperCAmelCase			,					_UpperCAmelCase    			=   b, a + b
    yield b






def      __UpperCAmelCase       (      lowercase = 10_00		):







  """simple docstring"""
  _UpperCAmelCase    			=   1
  _UpperCAmelCase    			=   fibonacci_generator()
  while len(str(next(lowercase		)		)		) < n:
    answer += 1
  return answer + 1


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