
lowercase  : Union[str, Any]						   =							tuple[float, float, float]
lowercase  : List[Any]						   =							tuple[float, float, float]







def 						_snake_case(  SCREAMING_SNAKE_CASE__ ,     SCREAMING_SNAKE_CASE__    )			->   Vectorad:
       lowercase							:					str	     =				end_pointa[0] - end_pointa[0]
       lowercase							:					Union[str, Any]	     =				end_pointa[1] - end_pointa[1]
       lowercase							:					int	     =				end_pointa[2] - end_pointa[2]
       return (x, y, z)







def 						_snake_case(  SCREAMING_SNAKE_CASE__ ,     SCREAMING_SNAKE_CASE__    )			->   Vectorad:
       lowercase							:					Any	     =				ab[1] * ac[2] - ab[2] * ac[1]  # *i
       lowercase							:					Optional[int]	     =				(ab[0] * ac[2] - ab[2] * ac[0]) * -1  # *j
       lowercase							:					Optional[Any]	     =				ab[0] * ac[1] - ab[1] * ac[0]  # *k
       return (x, y, z)







def 						_snake_case(  SCREAMING_SNAKE_CASE__ ,     SCREAMING_SNAKE_CASE__    )			->   bool:
       return tuple(round(SCREAMING_SNAKE_CASE__ ,     SCREAMING_SNAKE_CASE__    ) for x in vector    ) == (0, 0, 0)







def 						_snake_case(  SCREAMING_SNAKE_CASE__ ,     SCREAMING_SNAKE_CASE__ ,     SCREAMING_SNAKE_CASE__ ,     SCREAMING_SNAKE_CASE__ = 10    )			->   bool:
       lowercase							:					Union[str, Any]	     =				create_vector(SCREAMING_SNAKE_CASE__ ,     SCREAMING_SNAKE_CASE__    )
       lowercase							:					List[str]	     =				create_vector(SCREAMING_SNAKE_CASE__ ,     SCREAMING_SNAKE_CASE__    )
       return is_zero_vector(get_ad_vectors_cross(SCREAMING_SNAKE_CASE__ ,     SCREAMING_SNAKE_CASE__    ) ,     SCREAMING_SNAKE_CASE__    )


from collections.abc import Generator







def 						_snake_case(  )			->   Generator[int, None, None]:
       lowercase     ,      lowercase							:					List[str]	     =				0, 1
       while True:
              lowercase     ,      lowercase							:					Optional[int]	     =				b, a + b
              yield b







def 						_snake_case(  SCREAMING_SNAKE_CASE__ = 1_000    )			->   int:
       lowercase							:					List[Any]	     =				1
       lowercase							:					Tuple	     =				fibonacci_generator()
       while len(str(next(SCREAMING_SNAKE_CASE__    )    )    ) < n:
              answer += 1
       return answer + 1


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