#include #include #define cmp(a, b) (a += b, b = a - b, a -= b) 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); if (log(x / h) / log(4) - (double)times != 0.0) times += 1; int tmp = times; times += log(y / (h * pow(2.0, tmp))) / log(4); if (log(y / (h * pow(2.0, tmp))) / log(4) - (double)times != 0.0) times += 1; cout << times << endl; return 0; }