#include using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define P pair int main() { ll x, y, h; cin >> x >> y >> h; x *= 1000; y *= 1000; auto calc = [&](ll x) { ll res = 0; ll now = h; while (x > now) { res++; now *= 4; h *= 2; } return res; }; ll ans = 0; ans += calc(min(x,y)); ans += calc(max(x,y)); cout << ans << endl; }