N=int(input()) N=int(math.sqrt(N)) ans=str(N) print(len(ans))