import numpy as np

n=int(eval(input()))

a=list(map(int,input().split()))

b=list(map(int,input().split()))

d,e=0,0

for i in range(n):

  c=a[i]-b[i]

  if c>0:

    d+=c

  elif c%2==0:

    e+=-c

  else:

    e+=-c-1

print(('Yes' if 2*d<=e else 'No'))

def main():

  n=int(eval(input()))

  a=list(map(int,input().split()))

  b=list(map(int,input().split()))

  c=[a[i]-b[i] for i in range(n)]

  c0=sum([ci for ci in c if ci>0])

  c1=sum([-2*((ci+2-1)//2) for ci in c if ci<0])

  print(('Yes' if c1>=2*c0 else 'No'))

if __name__=='__main__':

  main()

import numpy as np

n = int(eval(input()))
a = list(map(int, input().split()))
b = list(map(int, input().split()))
d, e = 0, 0
for i in range(n):
    c = a[i] - b[i]
    if c > 0:
        d += c
    elif c % 2 == 0:
        e += -c
    else:
        e += -c - 1
print(("Yes" if 2 * d <= e else "No"))

def main():
    n = int(eval(input()))
    a = list(map(int, input().split()))
    b = list(map(int, input().split()))
    c = [a[i] - b[i] for i in range(n)]
    c0 = sum([ci for ci in c if ci > 0])
    c1 = sum([-2 * ((ci + 2 - 1) // 2) for ci in c if ci < 0])
    print(("Yes" if c1 >= 2 * c0 else "No"))


if __name__ == "__main__":
    main()

-import numpy as np +def main(): +    n = int(eval(input())) +    a = list(map(int, input().split())) +    b = list(map(int, input().split())) +    c = [a[i] - b[i] for i in range(n)] +    c0 = sum([ci for ci in c if ci > 0]) +    c1 = sum([-2 * ((ci + 2 - 1) // 2) for ci in c if ci < 0]) +    print(("Yes" if c1 >= 2 * c0 else "No")) -n = int(eval(input())) -a = list(map(int, input().split())) -b = list(map(int, input().split())) -d, e = 0, 0 -for i in range(n): -    c = a[i] - b[i] -    if c > 0: -        d += c -    elif c % 2 == 0: -        e += -c -    else: -        e += -c - 1 -print(("Yes" if 2 * d <= e else "No")) + +if __name__ == "__main__": +    main()