MOD = 10 ** 9 + 7 INF = 10 ** 10 import sys sys.setrecursionlimit(100000000) dy = (-1,0,1,0) dx = (0,1,0,-1) def main(): x,y,h = map(int,input().split()) x *= 1000 y *= 1000 ans = 0 while x > h or y > h: if h < x and h < y: if x < y: y *= 2 h *= 4 ans += 1 else: x *= 2 h *= 4 ans += 1 elif h < x: y *= 2 h *= 4 ans += 1 elif h < y: x *= 2 h *= 4 ans += 1 print(ans) if __name__ =='__main__': main()