import math n=int(input()) k=int(1) while n>k*k: k*=2 cnt=0 while k>0: k//=10 cnt+=1 print(cnt)