import java.io.*;
public class pat1059 {
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(br.readLine());
int[] id = new int[N]; //二维数组非常花时间
boolean[] checked = new boolean[N]; //宁愿使用两个一位数组
for(int i=0;i<N;i++) id[i] = Integer.parseInt(br.readLine()); //记录数据
int K = Integer.parseInt(br.readLine());
for(int i=0;i<K;i++) {
int num = Integer.parseInt(br.readLine());
System.out.printf("%04d: ", num);
int loc = -1; //记录号码的位置
for(int j=0;j<N;j++) if(num==id[j]) loc = j;
if(loc==-1) {
System.out.println("Are you kidding?");
continue;
}
if(checked[loc]) {
System.out.println("Checked");
continue;
}
els