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