def dfs(x, y, h): res = 0 if(x > h): res = max(res, dfs(x, y*2, h*4) + 1) if(y > h): res = max(res, dfs(x*2, y, h*4) + 1) return res x,y,h = map(int, input().split()) x *= 1000 y *= 1000 print(dfs(x,y,h))