




"""simple docstring"""




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


a_        =       {
    'configuration_chinese_clip': [
        'CHINESE_CLIP_PRETRAINED_CONFIG_ARCHIVE_MAP',
        'ChineseCLIPConfig',
        'ChineseCLIPOnnxConfig',
        'ChineseCLIPTextConfig',
        'ChineseCLIPVisionConfig',
    ],
    'processing_chinese_clip': ['ChineseCLIPProcessor'],
}

try:
			if not is_vision_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			a_        =       ['ChineseCLIPFeatureExtractor']
			a_        =       ['ChineseCLIPImageProcessor']

try:
			if not is_torch_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			a_        =       [
			    'CHINESE_CLIP_PRETRAINED_MODEL_ARCHIVE_LIST',
			    'ChineseCLIPModel',
			    'ChineseCLIPPreTrainedModel',
			    'ChineseCLIPTextModel',
			    'ChineseCLIPVisionModel',
			]

if TYPE_CHECKING:
			from .configuration_chinese_clip import (
			    CHINESE_CLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
			    ChineseCLIPConfig,
			    ChineseCLIPOnnxConfig,
			    ChineseCLIPTextConfig,
			    ChineseCLIPVisionConfig,
			)
			from .processing_chinese_clip import ChineseCLIPProcessor

			try:
						if not is_vision_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .feature_extraction_chinese_clip import ChineseCLIPFeatureExtractor, ChineseCLIPImageProcessor

			try:
						if not is_torch_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .modeling_chinese_clip import (
						    CHINESE_CLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
						    ChineseCLIPModel,
						    ChineseCLIPPreTrainedModel,
						    ChineseCLIPTextModel,
						    ChineseCLIPVisionModel,
						)

else:
			import sys

			a_        =       _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)








def      __lowercase(						UpperCAmelCase__			):


      """simple docstring"""



      if n == 1 or not isinstance(UpperCAmelCase__ , UpperCAmelCase__			):
            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      __lowercase(						UpperCAmelCase__			):


      """simple docstring"""



      lowerCamelCase             =		0
      lowerCamelCase             =		2

      while digits < n:
            index += 1
            lowerCamelCase             =		len(str(fibonacci(UpperCAmelCase__			)			)			)

      return index

def      __lowercase(						UpperCAmelCase__ = 1000			):


      """simple docstring"""



      return fibonacci_digits_index(UpperCAmelCase__			)


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