output_description: If we can repeat the operation zero or more times so that the sequences a and
  b become equal, print `Yes`; otherwise, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
      a_1 a_2 .. a_N
      b_1 b_2 .. b_N
attempt: # https://atcoder.jp/contests/apc001/tasks/apc001_b
  # greedyに前からシミュレーションかな
  # 都合が悪いものはすべて一番後ろの要素に追いやる
  
  # いやそれよりも、上段で何回操作が必要だったのか下段で何回操作が必要なのかメモしておけばよいのでは？(最小手順でね)
  # 最小で一致箚せられるときに、+になる分を計算して、さらに操作でそれらを一致させられるならばOK
  
  
  import sys
  
  sys.setrecursionlimit(1 << 25)
  read = sys.stdin.readline
  rr = range
  enu = enumerate
  
  
  def read_ints():
      return list(map(int, read().split()))
  
  
  def read_a_int():
      return int(read())
  
  
  N = read_a_int()
  A = read_ints()
  B = read_ints()
  
  n1 = 0  # bに+1する回数
  n2 = 0  # aに+2する回数
  for a, b in zip(A, B):
      # print(n1, n2)
      if b > a:
          sa = b - a
          n1 += sa % 2
          n2 += n1 + sa // 2
      elif b < a:
          n1 += a - b
  
  # 各回数に対して、余分にたさなければ行けないのだからそれを計算する
  # print(n1, n2)
  print("Yes" if n2 >= n1 * 2 else "No")
  
problem_description: Statement
  
  You are given two integer sequences of length N: a_1,a_2,..,a_N and
  b_1,b_2,..,b_N. Determine if we can repeat the following operation zero or
  more times so that the sequences a and b become equal.
  
  Operation: Choose two integers i and j (possibly the same) between 1 and N
  (inclusive), then perform the following two actions **simultaneously** :
  
    * Add 2 to a_i.
    * Add 1 to b_j.
samples: [{"input": "3\n    1 2 3\n    5 2 2", "output": "Yes\n    \n\nFor example, we can perform three operations as follows to do our job:\n\n  * First operation: i=1 and j=2. Now we have a = \\\\{3,2,3\\\\}, b = \\\\{5,3,2\\\\}.\n  * Second operation: i=1 and j=2. Now we have a = \\\\{5,2,3\\\\}, b = \\\\{5,4,2\\\\}.\n  * Third operation: i=2 and j=3. Now we have a = \\\\{5,4,3\\\\}, b = \\\\{5,4,3\\\\}.\n\n* * *"}, {"input": "5\n    3 1 4 1 5\n    2 7 1 8 2", "output": "No\n    \n\n* * *"}, {"input": "5\n    2 7 1 8 2\n    3 1 4 1 5", "output": "No"}]