#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define fix(n) cout<; const ll MOD = 1000000007; // 10^9 + 7 const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1}; const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1}; int dfs(ld x, ld y, ld h) { int ret = 0; if (x > y) swap(x, y); if (x > h) ret = max(ret, dfs(x / 2, y, h * 2) + 1); else if (y > h) ret = max(ret, dfs(x, y / 2, h * 2) + 1); return ret; } void solve() { ld x, y, h; cin >> x >> y >> h; x *= 1000; y *= 1000; outl(dfs(x, y, h)); } int main() { cin.tie(0); ios::sync_with_stdio(false); srand((unsigned)time(NULL)); fix(12); solve(); }