#include <stdio.h>

int na;
int a[2000];

int check (int target, int getI,int diff) {
  if (target == diff) {
    return 1;
  }else if (getI >= na) {
    return 0;
  }
  int res=check(target,getI+1,diff+a[getI]) || check(target,getI+1,diff);
  return res;
}

int main () {
  int n;
  int pre;
  scanf("%d",&na);
  for (pre=0;pre<na;pre++) {
    scanf("%d",&a[pre]);
  }
  scanf("%d",&n);
  int target[n];
  for (pre=0;pre<n;pre++) {
    scanf("%d",&target[pre]);
  }
  for (pre=0;pre<n;pre++) {
    int result = check(target[pre],0,0);
    if (result) {
      printf("yes\n");
    }else{
      printf("no\n");
    }
  }
  return 0;
}

