X,Y,H=map(int,input().split()) X*=1000 Y*=1000 K=0 while max(X,Y)>H: if H>=1 elif H>=1 elif X<=H>=1 elif Y<=H>=1 H<<=1 K+=1 print(K)