#include #include #include #include #include #include #include using namespace std; #define rep(i,x) for(ll i = 0; i < (ll)(x); i++) #define rrep(i,x) for(ll i = (ll)(x)-1;0 <= i; i--) #define reps(i,x) for(ll i = 1; i < (ll)(x)+1; i++) #define rreps(i,x) for(ll i = (ll)(x); 1 <= i; i--) #define debug(x) cerr << #x << ": " << (x) << "\n"; #define all(x) (x).begin(), (x).end() typedef long long ll; typedef long double ld; typedef pair P; typedef pair Pll; typedef vector vl; typedef vector> vvl; typedef vector>> vvvl; const ll INF = numeric_limits::max()/4; const int n_max = 1e5+10; int main(){ ll x,y,h; cin >> x >> y >> h; x *= 1000;y *= 1000; ll cnt = 0; if(x > y)swap(x,y); while(y > h){ if(x > h)x /= 2; else y /= 2; h *= 2; cnt++; if(x > y)swap(x,y); } cout << cnt << endl; }