#include using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (n); i++) #define repr(i, n) for (int i = (n) - 1; i >= 0; i--) #define range(a) a.begin(), a.end() int f(ll x, ll y, ll z) { int res = 0; if (x > z) res = max(res, f(x, y * 2, z * 4) + 1); if (y > z) res = max(res, f(x * 2, y, z * 4) + 1); return res; } int main() { ll x, y, z; cin >> x >> y >> z; cout << f(x * 1000, y * 1000, z) << endl; }