#include #define rep(i,n) for(int (i)=0;(i)<(int)(n);(i)++) #define repeq(i,n) for(int (i)=0;(i)<=(int)(n);(i)++) #define rep1(i,x,n) for(int (i)=(x);(i)<(int)(n);(i)++) #define rep1eq(i,x,n) for(int (i)=(x);(i)<=(int)(n);(i)++) #define rrep(i,x) for(int i=((int)(x)-1);i>=0;i--) using namespace std; using ll = long long; using Int = long long; const int MOD = 1000000007; const ll INF = numeric_limits::max(); const int inf = 1e8; //typedef pair P; //少数点表示 //cout << std::fixed << std::setprecision(14) <> x >> y >> h; x *= 1000; y *= 1000; if(x > y) swap(x,y); ll count = 0; while(1){ if(x <= h && y <= h) break; if(x > h){ x = (x + 1)/2; h *= 2; }else if(y > h){ y = (y + 1)/2; h *= 2; } count++; } cout << count << endl; return 0; }