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