a,b,h=map(int,input().split()) h*=0.001 a,b,c=min(a,b),max(a,b),0 while a>h: a/=2 h*=2 c+=1 while b>h: b/=2 h*=2 c+=1 print(c)