x,y,h=map(int,input().split()) m=min(x,y);M=max(x,y) m*=1000;M*=1000 cnt=0 while m>h: m/=2 h*=2 cnt+=1 while M>h: M/=2 h*=2 cnt+=1 print(cnt)