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