#include using namespace std; int main() { long x,y,h,ans; cin >> x >> y >> h; x*=1000; y*=1000; ans=0; if(x>y) swap(x,y); while(x>h){ x/=2; h*=2; ans++; } while(y>h){ y/=2; h*=2; ans++; } cout << ans << endl; return 0; }