/** * @FileName a.cpp * @Author kanpurin * @Created 2022.02.25 22:54:11 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { int t;cin >> t; while(t--) { int x,y;cin >> x >> y; if (y <= x || 5 <= x) { puts("Yes"); } else { puts("No"); } } return 0; }