import math n = int(input()) print(len(str(int(math.sqrt(n)))))