#include using namespace std; int main() { long double x,y,h; cin >> x >> y >> h; h /= 1000; int ans = 0; while(x > h || y > h) { if (x > y) swap(x,y); if (x > h) { h *= 2; x /= 2; } else if (y > h) { h *= 2; y /= 2; } else { break; } ans++; } cout << ans << endl; }