#include "bits/stdc++.h" using namespace std; typedef long long int ll; typedef pair pi; typedef pair, ll > pii; vector vec; vector > vec2; ll MOD = 1000000007; ll INF = 1145141919454519; int main(void){ ll x, y, h; cin >> x >> y >> h; x *= 1000; y *= 1000; if(x <= h || y <= h){ cout << 0 << endl; return 0; } ll ans = 0; while((x > 1 || y > 1) && x > h && y > h){ if(x >= y){ x /= 2; h *= 2; ans++; }else{ y /= 2; h *= 2; ans++; } } cout << ans + 1 << endl; }