import sys,math input = sys.stdin.readline n = input() n=math.isqrt(n) ans=0 while(n>0): n//=10 ans+=1 print(ans)