#include<bits/stdc++.h>
using namespace std;
#define rep(x,y,z) for(int (x)=(y);(x)<(z);i++)
#define ll long long
const int maxn=1e4+10;
int n,x;
map<int,int> mp;
int vis[maxn];
int judge(int x){
if(x==2) return 1;
if(x==1) return 0;
for(int i=2;i*i<=x;i++)
if(x%i==0) return 0;
return 1;
}
int main(){
cin>>n;rep(i,1,n+1) {cin>>x;mp[x]=i;}
int k;cin>>k;
rep(i,0,k){
cin>>x;
printf("%04d: ",x);
if(mp[x]==0) cout<<"Are you kidding?\n";
else{
if(vis[x]) cout<<"Checked\n";
else{
vis[x]=1;
if(mp[x]==1) cout<<"Mystery Award\n";
else if(judge(mp[x])) cout<<"Minion\n";
else cout<<"Chocolate\n";
}
}
}
return 0;
}