#include #include #define cmp(a, b) (a += b, b = a - b, a -= b) #define aaa 0.9999 using namespace std; int main(){ double x, y, h; cin >> x >> y >> h; if (x > y) cmp(x, y); x *= 1000, y *= 1000; int times = 0, i; times += log(x / h) / log(4) + aaa; int tmp = times; times += log(y / (h * pow(2.0, tmp))) / log(4) + aaa; cout << times << endl; return 0; }