#include #include #include #include #include #include #include #include #include #include #include #include #include #include #pragma warning(disable:4996) typedef long long ll; #define MIN(a, b) ((a)>(b)? (b): (a)) #define MAX(a, b) ((a)<(b)? (b): (a)) #define LINF 9223300000000000000 #define LINF2 1223300000000000000 #define INF 2140000000 //const long long MOD = 1000000007; const long long MOD = 998244353; using namespace std; void solve() { ll x, y,h; scanf("%lld%lld%lld", &x, &y, &h); long double xx = x*1000; long double yy = y*1000; long double hh = h; int cnt = 0; long double eps = 1e-15; if (xx > yy) swap(xx, yy); while(1) { if (xx < hh + eps) break; xx /= 2; hh *= 2; cnt++; } while(1 ) { if (yy < hh + eps) break; yy /= 2; hh *= 2; cnt++; } printf("%d\n", cnt); return; } int main(int argc, char* argv[]) { #if 1 solve(); #else int T; scanf("%d", &T); while(T--) { solve(); } #endif return 0; }