def solve(x,y): retu=0 if X>H*2**(x+x+y): retu=max(retu,solve(x+1,y)+1) if Y>H*2**(x+y+y): retu=max(retu,solve(x,y+1)+1) return retu X,Y,H=map(int,input().split()) X*=1000 Y*=1000 ans=solve(0,0) print(ans)