#include using namespace std; using ll = long long; using P = pair; using PL = pair; // Welcome to my source code! int main() { ll x, y, h; cin >> x >> y >> h; x *= 1000; y *= 1000; ll cnt = 0; while (x > h || y > h) { if (x <= y) { if (x > h) { x /= 2; h *= 2; } else { y /= 2; h *= 2; } } else if (x > h) { x /= 2; h *= 2; } cnt++; } cout << cnt << endl; }