#include #include #include #include #include #include #include using namespace std; typedef long long ll; int main(){ ios::sync_with_stdio(false); cin.tie(0); cout << setprecision(10) << fixed; ll x, y, h; cin >> x >> y >> h; x *= 1000; y *= 1000; x *= (1<<20); y *= (1<<20); h *= (1<<20); int ans = 0; // cout << x << endl; for(int i = 0; i < (1<<20); i++){ int cnt = 0; ll H = h; ll X = x; ll Y = y; for(int j = 0; j <= 20; j++){ int m = (1< H){ cnt++; H *= 2; X /= 2; } }else{ if(Y > H){ cnt++; H *= 2; Y /= 2; } } } ans = max(ans, cnt); } cout << ans << endl; }