N=int(input()) import math X=math.isqrt(N) print(len(str(X)))