#include <iostream>
#include <algorithm>
#include <iomanip>
#include <vector>
#include <queue>
#include <set>
#include <map>

using namespace std;
typedef long long ll;

int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout << setprecision(10) << fixed;
    ll x, y, h;
    cin >> x >> y >> h;
    x *= 1000;
    y *= 1000;
    x *= (1<<20);
    y *= (1<<20);
    h *= (1<<20);
    int ans = 0;
    while(true){
        if(x > y) swap(x, y);
        if(x > h){
            x /= 2;
            h *= 2;
            ans++;
        }else if(y > h){
            y /= 2;
            h *= 2;
            ans++;
        }else{
            break;
        }
    }
    cout << ans << endl;
}