#include #define rep(i,n) for(int i=(0);i<(n);i++) using namespace std; typedef long long ll; const int max_b = 60; bool can[max_b][max_b]; ll x, y, h; void rec(int i, int j){ if(!can[i+1][j] && x * 1000 > h * (1ll << (2 * i + j))){ can[i+1][j] = true; rec(i+1, j); } if(!can[i][j+1] && y * 1000 > h * (1ll << (i + 2 * j))){ can[i][j+1] = true; rec(i, j+1); } } int main(){ cin.tie(0); ios::sync_with_stdio(false); cin >> x >> y >> h; rep(i, max_b) rep(j, max_b) can[i][j] = false; rec(0, 0); int ans = 0; rep(i, max_b) rep(j, max_b) if(can[i][j]) ans = max(ans, i + j); cout << ans << endl; }