import math n=int(input()) ans=math.sqrt(n) ans=math.floor(ans) cnt=0 while ans>0: ans//=10 cnt+=1 print(cnt)