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