N=int(input()) import math X=math.log10(N)/2 X=math.ceil(X) print(X)