#include #include using namespace std; using namespace atcoder; using ll = long long; int T; ll X, Y; void solve() { cin >> X >> Y; if (X == Y) cout << "Yes" << endl; else if (X > Y) cout << "Yes" << endl; else if (X >= 5) cout << "Yes" << endl; else cout << "No" << endl; } int main() { cin >> T; while (T--) solve(); return 0; }