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