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