#include #include #include using namespace std; int N,M; vectorA,B,AB; int main() { int T;cin>>T; for(;T--;) { A.clear(); B.clear(); AB.clear(); setS; int N,M;cin>>N>>M; for(int i=0;i>a; S.insert(a); } for(int i=0;i>b; if(S.find(b)!=S.end()) { S.erase(b); AB.push_back(b); } else B.push_back(b); } for(int a:S)A.push_back(a); if(AB.empty()) { if(!A.empty()&&!B.empty())cout<<"No\n"; else { cout<<"Yes\n"; for(int a:A)cout<<"Red "<