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

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

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

  do i=1,n
     if(del(i)>0) then
        pl=pl+del(i)
     else
        mi=mi-del(i)
     end if
  end do

  if(mi<=pl) then
     if(mod(pl,2)==0 .or. mod(mi,2)==0)then
        write(*,*) 'Yes'
     else
        write(*,*) 'No'
     end if
  else
     write(*,*) 'No'
  end if
  
end program probB