#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; function dfs = [&](ll x, ll y) -> ll { if(x > y) swap(x, y); if(x > h) { x /= 2, h *= 2; return 1 + dfs(x, y); } else if(y > h) { y /= 2, h *= 2; return 1 + dfs(x, y); } else { return 0; } }; cout << dfs(x, y) << endl; }