#include using namespace std; int Q,N,T; main() { cin>>Q; for(;Q--;) { cin>>N>>T; if(T%2==0) { cout<<"Yes"<