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