object Main extends App {

  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt 
  val a = List.fill(n)(sc.nextInt) 
  val q = sc.nextInt 
  val m = List.fill(q)(sc.nextInt)
  
  def solve(i: Int, m: Int): Boolean = if(m == 0) true
    else if(i >= n) false
    else solve(i+1, m) || solve(i+1, m - a(i))
  
  val result = m.map(p => if(solve(0, p)) "yes" else "no")

  print(result.mkString(f"%n"))

}
