#include #include using namespace std; using namespace atcoder; #define ll long long #define rep(i,n) for (int i = 0; i < (n); i++) #define coutf(f) cout << fixed << setprecision(f) #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() int main() { double x, y, h; cin >> x >> y >> h; x *= 1000; y *= 1000; int ans = 0; while (x > h) { x /= 2; h *= 2; ans++; } while (y > h) { y /= 2; h *= 2; ans++; } cout << ans << endl; return 0; }