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