#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 = ceil((double)x / 2.0); h *= 2; } else { y = ceil((double)y / 2.0); h *= 2; } } else { if (y > h) { y = ceil((double)y / 2.0); h *= 2; } else { x = ceil((double)x / 2.0); h *= 2; } } cnt++; } cout << cnt << endl; }