def calc(s, i):
    global n
    global anslst
    global nlst
    if i == n:
        anslst[s] = 'yes'
        return

    calc(s, i+1)
    calc(s + nlst[i], i+1)


anslst = ['no']*2001
n = int(input())
nlst = list(map(int, input().split()))
q = int(input())
qlst = list(map(int, input().split()))

calc(0, 0)

for i in qlst:
    print(anslst[i]) def calc(s, i):
    global n
    global anslst
    global nlst
    if i == n:
        anslst[s] = 'yes'
        return

    calc(s, i+1)
    calc(s + nlst[i], i+1) calc global n global anslst global nlst if i == n:
        anslst[s] = 'yes'
        return

     i == n i n anslst[s] = 'yes' anslst[s] anslst s 'yes' return calc(s, i+1) calc s i+1 i 1 calc(s + nlst[i], i+1) calc s + nlst[i] s nlst[i] nlst i i+1 i 1 s s i i anslst = ['no']*2001 anslst ['no']*2001 ['no'] 'no' 2001 n = int(input()) n int(input()) int input() input nlst = list(map(int, input().split())) nlst list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split q = int(input()) q int(input()) int input() input qlst = list(map(int, input().split())) qlst list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split calc(0, 0) calc 0 0 for i in qlst:
    print(anslst[i]) i qlst print(anslst[i]) print anslst[i] anslst i nlst = list(map(int, input().split())) list(map(int, input().split())) nlst qlst = list(map(int, input().split())) list(map(int, input().split())) qlst q = int(input()) int(input()) q anslst = ['no']*2001 ['no']*2001 anslst n = int(input()) int(input()) n def calc(s, i):
    global n
    global anslst
    global nlst
    if i == n:
        anslst[s] = 'yes'
        return

    calc(s, i+1)
    calc(s + nlst[i], i+1) def calc(s, i):
    global n
    global anslst
    global nlst
    if i == n:
        anslst[s] = 'yes'
        return

    calc(s, i+1)
    calc(s + nlst[i], i+1) calc
def calc(s, i):
    global n
    global anslst
    global nlst
    if i == n:
        anslst[s] = 'yes'
        return

    calc(s, i+1)
    calc(s + nlst[i], i+1)


anslst = ['no']*2001
n = int(input())
nlst = list(map(int, input().split()))
q = int(input())
qlst = list(map(int, input().split()))

calc(0, 0)

for i in qlst:
    print(anslst[i])
