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