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