#include <stdio.h>
int main () {

   int a[20], m[200], s[400];
   int n, q, i, j;

   scanf ("%d\n", &n);
   for (i = 0; i < n; i++) {
     scanf ("%d\n", &a[i]);
   }

   scanf ("%d\n", &q);
   for (i = 0; i < q; i++) {
     scanf ("%d\n", &m[i]);
   }

   for (i = 0; i < n-1; i++) {
     for (j = i+1; j < n; j++) {
       s[] = a[i] + a[j];
     }
   }

   for (i = 0; i < q; i++) {
     for (j = 0; j < 400; j++) {
       if (m[i] == s[j])
         printf("yes"\n);
       else
         printf("no"\n);
     }
   }

   return 0;
}