program main
  implicit none
  integer N, V(20), C(20), i, otoku
  
  read(*, *) N
  read(*, *) (V(i), i = 1,N)
  read(*, *) (C(i), i = 1,N)
  otoku = 0
  do i = 1,N
    if (V(i)-C(i) > 0) then
      otoku = otoku + V(i)-C(i)
    end if
  end do
    

  write(* ,'(i0)') otoku
end program main
