import sys from math import sqrt input = sys.stdin.readline N = int(input()) print(len(str(int(sqrt(N)))))