#include using namespace std; int main(){ int n;cin>>n; for(int i = 0; n > i; i++){ int a,b;cin>>a>>b; if(a >= 5 || a >= b)cout << "Yes" << endl; else cout << "No" << endl; } }