import math x = input() f = math.floor(float(x)**0.5) s = str(f) print(len(s))