#include using namespace std; #define int long long templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> a >> b >> c; if(a > b) swap(a, b); double x = a * 1000; double y = b * 1000; int ans = 0; while(c < x){ ans++; c *= 2; x /= 2; } while(c < y){ ans++; c *= 2; y /= 2; } cout << ans << endl; return 0; }