x,y,h = map(int,input().split()) x *= 1000 y *= 1000 res = 0 tmp = 0 a,b,c = x,y,h while a > (c << tmp): c <<= 1 tmp += 1 while b > c: c <<= 2 tmp += 1 res = max(res, tmp) tmp = 0 a,b,c = x,y,h while b > (c << tmp): c <<= 1 tmp += 1 while a > c: c <<= 2 tmp += 1 res = max(res, tmp) print(res)