#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(0); ll x,y,h; cin >> x >> y >> h; x *= 1000, y *= 1000; ll mi = min(x, y), ma = max(x, y); int ans = 0; while(mi > h) mi /= 2, h *= 2, ans++; while(ma > h) ma /= 2, h *= 2, ans++; cout << ans << endl; }