# 貪欲にx,yの小さい方からやればいいのか X, Y, H = map(int, input().split()) smaller = min(X, Y)*1000 larger = max(X, Y)*1000 count = 0 while smaller > H: smaller /= 2 H *= 2 count += 1 while larger > H: larger /= 2 H *= 2 count += 1 print(count)