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