#include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int x, y, h; cin >> x >> y >> h; x = 1000 * x; y = 1000 * y; int ans = 0; if(x > y) { swap(x, y); } while(true) { if(y < h) { break; } ans++; y = y / 2; h = h * 2; } while(true) { if(x < h) { break; } ans++; x = x / 2; h = h * 2; } cout << ans << endl; }