#include using namespace std; const int mod=998244353; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin>>T; while(T--){ int A,B; cin>>A>>B; if(A<5){ cout<<(B<=A?"Yes\n":"No\n"); }else{ cout<<"Yes\n"; } } }