#include using namespace std; typedef long long ll; #define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++) int main(){ double x, y, z; cin >> x >> y >> z; z /= 1000; ll ans = 0; while(x > z || y > z){ if(x <= z){ y /= 2; }else if(y <= z){ x /= 2; }else if(x < y){ x /= 2; }else{ y /= 2; } z *= 2; ans++; } cout << ans << endl; return 0; }