#include<iostream>
#include<set>
using namespace std;
int main()
{
int n=0;
cin>>n;
set<int> no_handsome;
for(int i=0;i<n;i++)
{
int k=0;
cin>>k;
for(int j=0;j<k;j++)
{
int temp=0;
cin>>temp;
if(k>1)
{
no_handsome.insert(temp);
}
}
}
int m=0;
cin>>m;
set<int> handsome;
bool flag=true;
for(int i=0;i<m;i++)
{
int temp;
cin>>temp;
if(no_handsome.find(temp)==no_handsome.end())
{
if(handsome.find(temp)==handsome.end())
{
if(!flag)
{
cout<<" ";
}
printf("%05d",temp);
flag=false;
}
handsome.insert(temp);
}
}
if(handsome.size()==0)
{
cout<<"No one is handsome";
}
}
12-21
2878
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)