import sys from collections import defaultdict def input(): return sys.stdin.readline().rstrip('\n') def solve(x,y,h): c = 0 while x > h: y *= 2 h *= 4 c += 1 while y > h: x *= 2 h *= 4 c += 1 return c def main(): x,y,h=map(int,input().split()) x, y = x*1000, y*1000 return max(solve(x,y,h), solve(y,x,h)) if __name__ == '__main__': ret = main() if ret is not None: print(ret)