from math import sqrt from sys import stdin n = int(stdin.buffer.readline()) print(len(str(int(sqrt(n)))))