#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); ll x, y, h; cin >> x >> y >> h; set> S; function dfs = [&](ll x, ll y, ll h){ if(S.count(make_pair(x, y)))return 0ll; S.insert(make_pair(x, y)); ll res = 0; if(x > h)res = max(res, dfs(x, y * 2, h * 4) + 1); if(y > h)res = max(res, dfs(x * 2, y, h * 4) + 1); return res; }; cout << dfs(x * 1000, y * 1000, h) << '\n'; }