import math n=long(input()) k=n**.5 cnt=0 while k>0: k//=10 cnt+=1 print(cnt)