object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt()
    val a = (0 until n).map(_ => sc.nextInt())
    val m = sc.nextInt()
    val b = (0 until m).map(_ => sc.nextInt())
    val c = (0 until m).map(_ => sc.nextInt())

    for (i <- 0 until m) {
      val sum = a.filter(ai => (ai <= b(i))).sum
      val ans = if (sum >= c(i)) "Yes" else "No"
      println(ans)
    }
  }
}