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