#include #define rep(X,N) for(ll X = 0; X < (N); X++) #define PI (acos(-1.0)) #define pback push_back #define mpair make_pair #define MODN 1000000007 #define ALL(V) (V).begin(),(V).end() #define INT_MAX_HALF (INT_MAX / 2) #define EPS (1e-10) using namespace std; typedef long long ll; int ans = 0; void dfs(double x, double y, double h, int c){ ans = max(ans, c); if(x > h){ dfs(x / 2, y, h * 2, c + 1); } if(y > h){ dfs(x, y / 2, h * 2, c + 1); } } int main(){ double x, y, h; cin >> x >> y >> h; h = h * 0.001; dfs(x, y, h, 0); cout << ans << endl; }