program probB
  implicit none
  integer*8 n,i,j,pl,mi,tmp
  integer*8,allocatable :: a(:),b(:),del(:)

  read(*,*) n
  allocate(a(n),b(n),del(n))
  read(*,*) a
  read(*,*) b

  del(:)=b(:)-a(:)

  if(sum(del)<0) then
     write(*,*)'No'
     stop
  end if

  if(abs(minval(del))>n) then
     write(*,*) 'No'
     stop
  end if
  
  do i=1,n
     if(del(i)>0) then
        pl=pl+del(i)
     else
        mi=mi-del(i)
     end if
  end do


  tmp=1
  do i=1,n
     do while(del(i)<0)
        do j=tmp,n
           if(del(j)>0) then
              a(j)=a(j)+2
              b(i)=b(i)+1
              del(i)=b(i)-a(i)
              del(j)=b(j)-a(j)
              tmp=j
              if(sum(del)<0) then
                 write(*,*)'No'
                 stop
              end if
              exit
           end if
        end do
        if(sum(del)<0) then
           write(*,*)'No'
           stop
        end if
     end do
  end do

  write(*,*) 'Yes'  
end program probB
