#include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); double x, y, h; cin >> x >> y >> h; h /= 1000; if (x > y) swap(x, y); int ans = 0; while (x > h || y > h) { if (x > h) { x /= 2; h *= 2; } else if (y > h) { y /= 2; h *= 2; } ans++; } cout << ans << "\n"; }