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