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