#include<stdio.h>
#define true 1
#define false -1

int A(int x,int y);

int a[2000],b[2000];

int main(){
    int c,d,e,i;
    char f[2][4]={"yes","no"};
    
    scanf("%d",&c);
    for(i=0;i<c;i++){
        scanf("%d",&a[i]);
    }
    
        scanf("%d",&d);
    for(i=0;i<d;i++){
        scanf("%d",&b[i]);
    if(A(o,b[i]))==ture){
        printf("%s\n",s[0]);
    }else{
        printf("%s\n",s[1]);
    }
    return 0;
}

int A(int )
