#include using namespace std; typedef long long ll; typedef pair P; ll x,y,h; ll ans; int main(void){ cin.tie(0); ios::sync_with_stdio(0); cin>>x>>y>>h; x*=1000; y*=1000; x*=1000000; y*=1000000; h*=1000000; if(x>y){ swap(x,y); } while(x>h){ x/=2; h*=2; ans++; } while(y>h){ y/=2; h*=2; ans++; } cout<