n = int(input())
a = list(map(int,input().split()))
b = [2 ** i for i in range(n)]
c = {}
for i in range(2 ** n):
    k = 0
    k += i
    v = 0
    for j in range(n)[::-1]:
        v += k // b[j] * a[j]
        k %= b[j]
    c[v] = 0
m = int(input())
a = list(map(int,input().split()))
for i in range(m):
    try:
        c[a[i]]
        print("yes")
    except:
        print("no")
     n = int(input()) n int(input()) int input() input a = list(map(int,input().split())) a list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split 2 ** i for i in range(n) for i in range(n) i range(n) range n for i in range(n) 2 ** i 2 i b = [2 ** i for i in range(n)] b [2 ** i for i in range(n)] c = {} c {} for i in range(2 ** n):
    k = 0
    k += i
    v = 0
    for j in range(n)[::-1]:
        v += k // b[j] * a[j]
        k %= b[j]
    c[v] = 0 i range(2 ** n) range 2 ** n 2 n k = 0 k 0 k += i k i v = 0 v 0 for j in range(n)[::-1]:
        v += k // b[j] * a[j]
        k %= b[j]
     j range(n)[::-1] (n) range n ::-1 -1 v += k // b[j] * a[j] v k // b[j] * a[j] k // b[j] k b[j] b j a[j] a j k %= b[j] k b[j] b j c[v] = 0 c[v] c v 0 m = int(input()) m int(input()) int input() input a = list(map(int,input().split())) a list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split for i in range(m):
    try:
        c[a[i]]
        print("yes")
    except:
        print("no")
     i range(m) range m try:
        c[a[i]]
        print("yes")
    except:
        print("no")
     except:
        print("no")
     print("no") print "no" c[a[i]] c a[i] a i print("yes") print "yes" m = int(input()) int(input()) m v += k // b[j] * a[j] k // b[j] * a[j] v b = [2 ** i for i in range(n)] [2 ** i for i in range(n)] b a = list(map(int,input().split())) list(map(int,input().split())) a k = 0 0 k k += i i k n = int(input()) int(input()) n k %= b[j] b[j] k a = list(map(int,input().split())) list(map(int,input().split())) a v = 0 0 v c = {} {} c
n = int(input())
a = list(map(int,input().split()))
b = [2 ** i for i in range(n)]
c = {}
for i in range(2 ** n):
    k = 0
    k += i
    v = 0
    for j in range(n)[::-1]:
        v += k // b[j] * a[j]
        k %= b[j]
    c[v] = 0
m = int(input())
a = list(map(int,input().split()))
for i in range(m):
    try:
        c[a[i]]
        print("yes")
    except:
        print("no")
    
