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