




'''simple docstring'''



UpperCAmelCase_							:	List[Any]	     =		{
    0: '''0''',
    1: '''1''',
    2: '''2''',
    3: '''3''',
    4: '''4''',
    5: '''5''',
    6: '''6''',
    7: '''7''',
    8: '''8''',
    9: '''9''',
    1_0: '''a''',
    1_1: '''b''',
    1_2: '''c''',
    1_3: '''d''',
    1_4: '''e''',
    1_5: '''f''',
}







def       _UpperCamelCase			(_lowerCamelCase				:  float						)-> str:




     '''simple docstring'''





     assert type(_lowerCamelCase						) in (int, float) and decimal == int(_lowerCamelCase						)
     __snake_case            =	int(_lowerCamelCase						)
     __snake_case            =	''''''
     __snake_case            =	False
     if decimal < 0:
          __snake_case            =	True
          decimal *= -1
     while decimal > 0:
          __snake_case       ,     __snake_case            =	divmod(_lowerCamelCase ,						16						)
          __snake_case            =	values[remainder] + hexadecimal
     __snake_case            =	'''0x''' + hexadecimal
     if negative:
          __snake_case            =	'''-''' + hexadecimal
     return hexadecimal


if __name__ == "__main__":
     import doctest

     doctest.testmod()







"""simple docstring"""




from collections.abc import Generator







def 				_UpperCAmelCase		(							):





		"""simple docstring"""




		lowerCAmelCase__ ,       lowerCAmelCase__   = 0, 1
		while True:
				lowerCAmelCase__ ,       lowerCAmelCase__   = b, a + b
				yield b







def 				_UpperCAmelCase		(							lowerCamelCase__ = 1000  ):





		"""simple docstring"""




		lowerCAmelCase__   = 1
		lowerCAmelCase__   = fibonacci_generator()
		while len(str(next(lowerCamelCase__  )  )  ) < n:
				answer += 1
		return answer + 1


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




