import java.util.Scanner

/**
  * Created by 80011714 on 2018/2/5.
  */
object Main {

  def solve(sc: Scanner): Unit = {
    val x, y = sc.nextLong()
    println(if (x % y == 0) (-1) else {
      var i = 1
      while (i * x % y == 0) (i += 1)
      i * x
    })
  }

  def task2(n: Int, left: Array[Long], right: Array[Long]): String = {
    if (n == 0)
      return "Yes"
    
    if (n == 1)
      return if (left.head <= right.head) "Yes" else "No"

    if (left.head < right.head) {
      val right_add_count = (right.head - left.head) / 2
      right(1) += right_add_count
    } else if (left.head > right.head) {
      val left_add_count = left.head - right.head
      left(1) += (left_add_count * 2)
    }
    return task2(n - 1, left.tail, right.tail)
  }

  def main(args: Array[String]): Unit = {
//    val sc: Scanner = new Scanner(System.in)

    val N = scala.io.StdIn.readInt
    val a = scala.io.StdIn.readLine.split(" ").map(_.toLong).toSeq.toArray
    val b = scala.io.StdIn.readLine.split(" ").map(_.toLong).toSeq.toArray

    println(task2(N, a, b))
  }
}
