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