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