#include #include #include #include using namespace std; using ull = unsigned long long; int main() { ull x, y; ull h; cin >> x; cin >> y; x *= 1000; y *= 1000; cin >> h; int ope = 0; while (true) { if (x > h) { x /= 2; h *= 2; } else if (y > h) { y /= 2; h *= 2; } else break; ++ope; } cout << ope << endl; return 0; }