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