#pragma GCC optimize("Ofast") #include using namespace std; typedef long long ll; typedef long double ld; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (bh){ chmax(res,f(x/2,y,h*2)+1); } if(y>h){ chmax(res,f(x,y/2,h*2)+1); } return res; } int main(){ cin.tie(0); ios::sync_with_stdio(false); ld x,y,h;cin >> x >> y >> h; x*=1000; y*=1000; cout << f(x,y,h) << endl; }