#include using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { cin.tie(nullptr)->sync_with_stdio(false); ll x, y, h; cin >> x >> y >> h; x *= 1000, y *= 1000; ll ans = 0; while (true) { if (x > y) swap(x, y); if (x > h) x = (x + 1) / 2, h *= 2, ans++; else if (y > h) y = (y + 1) / 2, h *= 2, ans++; else break; } cout << ans << '\n'; return 0; }