n = int(input()) for i in range(0, 10**5 + 1): if (10**i)**2 <= n < (10**(i + 1))**2: print(i + 1) exit()