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