x,y,z = map(int,input().split()) if x>y: x,y = y,x z *= 0.001 ans = 0 while x>z: x /= 2 z *= 2 ans += 1 while y>z: y /= 2 z *= 2 ans += 1 print(ans)