//#define _GLIBCXX_DEBUG #include "bits/stdc++.h" using namespace std; //------------------------------- Type Names -------------------------------// using i64 = int_fast64_t; using seika = string; //{akari : 1D, yukari : 2D, maki : 3D} vector template using akari = vector; template using yukari = akari>; template using maki = akari>; //{akane : ascending order, aoi : decending order} priority queue template using akane = priority_queue, greater>; template using aoi = priority_queue; //------------------------------- Libraries ---------------------------------// //------------------------------- Dubug Functions ---------------------------// inline void print() { cout << endl; } template void print(const First &first, const Rest &... rest) { cout << first << ' '; print(rest...); } //------------------------------- Solver ------------------------------------// void solve() { double x, y, h; cin >> x >> y >> h; x *= 1000; y *= 1000; int ans = 0; while (max(x, y) > h) { ans++; if (x < y) { swap(x, y); } if (y > h) { y /= 2; } else { x /= 2; } h *= 2; } cout << ans << endl; } int main() { solve(); return 0; }