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