





def        SCREAMING_SNAKE_CASE      (       _UpperCAmelCase )			->     int:
    if n == 1 or not isinstance(_UpperCAmelCase						,	_UpperCAmelCase ):
        return 0
    elif n == 2:
        return 1
    else:
        lowerCamelCase__    :      List[str]					 =		[0, 1]
        for i in range(2						,	n + 1 ):
            sequence.append(sequence[i - 1] + sequence[i - 2] )

        return sequence[n]


def        SCREAMING_SNAKE_CASE      (       _UpperCAmelCase )			->     int:
    lowerCamelCase__    :      List[str]					 =		0
    lowerCamelCase__    :      Dict					 =		2

    while digits < n:
        index += 1
        lowerCamelCase__    :      Union[str, Any]					 =		len(str(fibonacci(_UpperCAmelCase ) ) )

    return index


def        SCREAMING_SNAKE_CASE      (       _UpperCAmelCase = 1000 )			->     int:
    return fibonacci_digits_index(_UpperCAmelCase )


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










from PIL import Image






def 				A				(					_lowerCamelCase  ):





							'''simple docstring'''




							_lowerCAmelCase   ,    _lowerCAmelCase     :							int    =    image.size
							_lowerCAmelCase     :							Any    =    0
							_lowerCAmelCase     :							Tuple    =    image.load()
							for i in range(_lowerCamelCase  ):
														for j in range(_lowerCamelCase  ):
																					_lowerCAmelCase     :							Union[str, Any]    =    pixels[j, i]
																					mean += pixel
							mean //= width * height

							for j in range(_lowerCamelCase  ):
														for i in range(_lowerCamelCase  ):
																					_lowerCAmelCase     :							Optional[Any]    =    255 if pixels[i, j] > mean else 0
							return image


if __name__ == "__main__":
						_snake_case		=  mean_threshold(Image.open("path_to_image").convert("L"))
						image.save("output_image_path")
