from math import sqrt, floor N = int(input()) print(len(str(floor(sqrt(N)))))