x,y,h=map(int,input().split()) ANS=0 x*=1000 y*=1000 while x>h: x/=2 h*=2 ANS+=1 while y>h: y/=2 h*=2 ANS+=1 print(ANS)