#include using namespace std; int main() { double x, y, h; cin >> x >> y >> h; int ans = 0; if(x > y) swap(x, y); x *= 1000, y *= 1000; while(x > h) x /= 2, h *= 2, ans++; while(y > h) y /= 2, h *= 2, ans++; cout << ans << '\n'; return 0; }