x,y,h=map(int,input().split()) x*=1000 y*=1000 c=0 while x>h or y>h: if x>h and y>h: if xh: x/=2 elif y>h: y/=2 c+=1 h*=2 print(c)