






'''simple docstring'''
from collections.abc import Generator





def 	_a(					):




      '''simple docstring'''






      SCREAMING_SNAKE_CASE__						,		SCREAMING_SNAKE_CASE__       :			Any													=0, 1
      while True:
            SCREAMING_SNAKE_CASE__						,		SCREAMING_SNAKE_CASE__       :			Any													=b, a + b
            yield b





def 	_a(					UpperCamelCase__			:  int = 1_0_0_0							):




      '''simple docstring'''






      SCREAMING_SNAKE_CASE__       :			List[Any]													=1
      SCREAMING_SNAKE_CASE__       :			Tuple													=fibonacci_generator()
      while len(str(next(UpperCamelCase__							)							)							) < n:
            answer += 1
      return answer + 1


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







'''simple docstring'''
import math





def 	_a(					UpperCamelCase__			:  int							):




      '''simple docstring'''






      return math.sqrt(UpperCamelCase__							) * math.sqrt(UpperCamelCase__							) == num





def 	_a(					UpperCamelCase__			:  int							):




      '''simple docstring'''






      SCREAMING_SNAKE_CASE__       :			List[Any]													=0
      SCREAMING_SNAKE_CASE__       :			Any													=n
      while left <= right:
            SCREAMING_SNAKE_CASE__       :			str													=(left + right) // 2
            if mid**2 == n:
                  return True
            elif mid**2 > n:
                  SCREAMING_SNAKE_CASE__       :			Optional[Any]													=mid - 1
            else:
                  SCREAMING_SNAKE_CASE__       :			Tuple													=mid + 1
      return False


if __name__ == "__main__":
  import doctest

  doctest.testmod()