#include #include #define ft first #define sc second #define pt(sth) cout << sth << "\n" #define chmax(a, b) (a)=max(a, b) #define chmin(a, b) (a)=min(a, b) #define moC(a, s, b) (a)=((a)s(b)+MOD)%MOD using namespace std; typedef long long ll; typedef pair pll; static const ll INF=1e18; static const ll MAX=101010; static const ll MOD=1e9+7; /* for(i=0; i> a[i]; */ int main(void) { ll i, j, k; ll x, y, h; cin >> x >> y >> h; x*=1000; y*=1000; ll cnt=0; while(x>h || y>h) { if(xh) {x>>=1; h<<=1;} else {y>>=1; h<<=1;} }else { if(y>h) {y>>=1; h<<=1;} else {x>>=1; h<<=1;} } cnt++; } pt(cnt); }