添加链接描述
#include<bits/stdc++.h>
using namespace std;
map<string,int> mp;
bool is(int x){
if(x==1)return 0;
for(int i=2;i<=x/i;i++){
if(x%i==0)return 0;
}
return 1;
}
int main(){
int n;
cin>>n;
for(int i=1;i<=n;i++){
string s;
cin>>s;
mp[s]=i;
}
cin>>n;
for(int i=1;i<=n;i++){
string s;
cin>>s;
int p=mp[s];
if(p!=0)mp[s]=-1;
if(p==-1)cout<<s<<": Checked"<<endl;
else if(p==1)cout<<s<<": "<<"Mystery Award"<<endl;
else if(p==0)cout<<s<<": Are you kidding?"<<endl;
else if(is(p)){
cout<<s<<": "<<"Minion"<<endl;
}
else cout<<s<<": "<<"Chocolate"<<endl;
}
return 0;
}