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