#include using namespace std; int T; main() { cin>>T; for(;T--;) { long N,A,B; cin>>N>>A>>B; if(N==2||A%2!=B%2)cout<<"YES"<