n = int(input()) n = n**0.5 ans = 0 while n>0: n = n//10 ans+=1 print(ans)