gets;list = gets.split.map(&:to_i).inject([0]) {|memo, val|
  0.step(memo.size*2-1, 2) {|i| memo.insert(i+1, memo[i]+val)}
  memo
}.uniq
gets;gets.split.map(&:to_i).each do |m|
  puts list.include?(m) ? 'yes' : 'no'
end