#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; using ull = unsigned long long; const ll INF = 1e18; const ll MOD = 1e9 + 7; #define REP(i, n) for(ll i = 0; i < n; i++) int main(){ long double x, y, h; cin >> x >> y >> h; h /= 1000.0; if(x > y) swap(x, y); ll cnt = 0; while(x > h){ x /= 2.0; h *= 2.0; cnt++; } while(y > h){ y /= 2.0; h *= 2.0; cnt++; } cout << cnt << endl; }