






from collections.abc import Generator







def 					SCREAMING_SNAKE_CASE    (			):
	snake_case__			:				Optional[Any]       =  0, 1
	while True:
		snake_case__			:				str       =  b, a + b
		yield b







def 					SCREAMING_SNAKE_CASE    (			snake_case_ :							int = 1000       ):
	snake_case__			:				Optional[Any]       =  1
	snake_case__			:				List[Any]       =  fibonacci_generator()
	while len(str(next(snake_case_       )       )       ) < n:
		answer += 1
	return answer + 1


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











# limitations under the License.

# NOTE: This file is deprecated and will be removed in a future version.
# It only exists so that temporarely `from diffusers.pipelines import DiffusionPipeline` works

from .pipelines import DiffusionPipeline, ImagePipelineOutput  # noqa: F401
from .utils import deprecate


deprecate(
    """pipelines_utils""",
    """0.22.0""",
    """Importing `DiffusionPipeline` or `ImagePipelineOutput` from diffusers.pipeline_utils is deprecated. Please import from diffusers.pipelines.pipeline_utils instead.""",
    standard_warn=False,
    stacklevel=3,
)



