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