N = int(input()) num = 1 keta = 0 while num**2 <= N: num *= 10 keta += 1 print(keta)