#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int nn2 = 2e6; vector N2(nn2); for(long long i=0; i> R >> B; if(R > B) swap(R,B); int limit = upper_bound(N2.begin(),N2.end(),R+B)-N2.begin(); long long n = min(18,limit),n2 = 1< Se; for(long long i=0; i R) break; maxs = s; } R = maxs; sum = R+B; int ans = upper_bound(N2.begin(),N2.end(),sum)-N2.begin(); cout << ans << endl; } }