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

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

  write(*,*) 'Yes'
  stop

  minus_b=0
  tmp_2=0
  pl=0
  mi=0
  do i=1,n
     del(i)=b(i)-a(i)
     if(del(i)>0)then
        pl=pl+del(i)
     else
        mi=mi-del(i)
     end if
     
     select case(del(i))
     case(:-1)
        tmp_2=tmp_2+1
        minus_b(tmp_2)=i
     end select
  end do

  if(pl+mi<0) then
     write(*,*)'No'
     stop
  end if

  i=0
  do while(mi<0.and.i<n)
     i=i+1
     if(del(i)>0) then
        mi=mi-del(i)
        a(i)=+del(i)
     end if
  end do
  
  tmp=1
  do i=1,tmp_2
     k=minus_b(i)
        do j=tmp,n
           if(del(j)>0) then
              a(j)=a(j)+2
              b(k)=b(k)+1
              del(k)=b(k)-a(k)
              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
