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