#include #include #include #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; template using V = vector; template using P = pair; using vll = V; using vvll = V; #define rep(i, k, n) for (ll i=k; i<(ll)n; ++i) #define REP(i, n) rep(i, 0, n) #define ALL(v) v.begin(),v.end() template < class T > inline bool chmax(T& a, T b) {if (a < b) { a=b; return true; } return false; } template < class T > inline bool chmin(T& a, T b) {if (a > b) { a=b; return true; } return false; } #define DEBUG_VLL(vec) REP(sz, vec.size()) std::cerr<> x >> y >> h; x *= 1000, y *= 1000; int ans = 0; while (true) { if (h >= x && h >= y) break; if (x > y) swap(x, y); if (x > h) { if (x & 1) { h <<= 2LL; y <<= 1LL; } else { x >>= 1; h <<= 1LL; } } else { if (y & 1) { h <<= 2LL; x <<= 1LL; } else { y >>= 1; h <<= 1LL; } } ans++; } cout << ans << '\n'; return 0; }