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