#include #define rep(i,n) for (int i=0; i<(n); ++i) using namespace std; using ll = long long; int main() { ll x, y, h; cin >> x >> y >> h; x *= 1000; y *= 1000; if (x > y) swap(x, y); int cnt = 0; bool fr = false; while (x > h || (x == h && fr)) { if (x % 2 != 0) fr = true; x /= 2; h *= 2; cnt ++; } fr = false; while (y > h || (y == h && fr)) { if (y % 2 != 0) fr = true; y /= 2; h *= 2; cnt ++; } cout << cnt << endl; return 0; }