#include<iostream>
#include<vector>
#include<string>
#define rep(i, start, end) for (int i = (int)start; i < (int)end; ++i)
#define rrep(i, start, end) for (int i = (int)start - 1; i >= (int)end; --i)
#define all(x) (x).begin(), (x).end()
using namespace std;
using ll = long long;
template<typename T> inline bool chmax(T& a, T b) {if (a < b) {a = b; return true;} return 0;}
template<typename T> inline bool chmin(T& a, T b) {if (a > b) {a = b; return true;} return 0;}

int count(double X, double Y, double H) {
    int res = 0;
    while (X > H) {
        X /= 2;
        H *= 2;
        ++res;
    }
    while (Y > H) {
        Y /= 2;
        H *= 2;
        ++res;
    }
    return res;
}

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    double X, Y, H;
    cin >> X >> Y >> H;
    X *= 1000;
    Y *= 1000;
    int ans = count(X, Y, H);
    chmax(ans, count(Y, X, H));
    cout << ans << endl;
    return 0;
}