#include <iostream>
#include <bits/stdc++.h>
using namespace std;
bool isprime(int n)
{
bool flag = 1;
for(int i = 2;i <= sqrt(n);i++)
{
if(n%i==0)
{
flag=0;
break;
}
}
return flag;
}
int main() {
int N;
cin>>N;
map<string,int>mp;
string s;
for(int i = 0;i<N;i++)
{
cin>>s;
mp[s] = i+1;
}
int k;
cin>>k;
for(int i = 0;i<k;i++)
{
cin>>s;
if(!mp.count(s))
{
cout<<s<<": "<<"Are you kidding?"<<endl;
continue;
}
else if(mp[s] == -1)
{
cout<<s<<": "<<"Checked"<<endl;
}
else if(mp[s] == 1){
cout<<s<<": "<<"Mystery Award"<<endl;
}
else if(isprime(mp[s]))
{
cout<<s<<": "<<"Minion"<<endl;
}
else
{
cout<<s<<": "<<"Chocolate"<<endl;
}
mp[s] = -1;
}
return 0;
}