import math def d(N): ans = 0 while N > 0: ans += 1 N //= 10 return ans N = int(input()) N = int(math.sqrt(N)) print(d(N))