#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define llint long long #define inf 1e18 #define rep(x, s, t) for(llint (x) = (s); (x) < (t); (x)++) #define Rep(x, s, t) for(llint (x) = (s); (x) <= (t); (x)++) #define eps 1e-9 using namespace std; double x, y, h; int main(void) { ios::sync_with_stdio(0); cin.tie(0); cin >> x >> y >> h; x *= 1000, y *= 1000; llint ans = 0; while(1){ if(x > h+eps) x/=2, h*=2, ans++; else if(y > h+eps) y/=2, h*=2, ans++; else break; } cout<< ans << endl; return 0; }