#include using namespace std; using ll = long double; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll x, y, h; cin >> x >> y >> h; x *= 1000; y *= 1000; if (x > y) swap(x, y); ll ans = 0; while (x > h) { x /= 2; h *= 2; ++ans; } while (y > h) { y /= 2; h *= 2; ++ans; } cout << ans << "\n"; return 0; }