n = int(input()) a = int(n**0.5) print(len(str(a)))