#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); ll xx = x*1000; ll yy = y*1000; ll hh = h; int cnt = 0; if (xx > yy) swap(xx, yy); while(1) { if (xx <= hh) break; xx /= 2; hh *= 2; cnt++; } while(1 ) { if (yy <= hh) 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; }