#include using namespace std; using ll = long long; using vll = vector; using vvll = vector; using vvvll = vector; using vb = vector; using vvb = vector; using vvvb = vector; #define all(A) A.begin(),A.end() #define rep(i, n) for (ll i = 0; i < (ll) (n); i++) vvll G; int main() { ll T; cin>>T; rep(t,T){ ll X,Y; cin>>X>>Y; if(X>4){ cout<<"Yes"<