import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int V[] =new int[N];
    int C[] =new int[N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{C[i-N]=V[i-N]-sc.nextInt();
           if(C[i-N]>0){x=x+C[i-N];}}}
    System.out.println(x);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int V[] =new int[N];
    int C[] =new int[N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{C[i-N]=V[i-N]-sc.nextInt();
           if(C[i-N]>0){x=x+C[i-N];}}}
    System.out.println(x);
  }
} Main public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int V[] =new int[N];
    int C[] =new int[N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{C[i-N]=V[i-N]-sc.nextInt();
           if(C[i-N]>0){x=x+C[i-N];}}}
    System.out.println(x);
  } main {
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int V[] =new int[N];
    int C[] =new int[N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{C[i-N]=V[i-N]-sc.nextInt();
           if(C[i-N]>0){x=x+C[i-N];}}}
    System.out.println(x);
  } Scanner sc =new Scanner(System.in); sc new Scanner(System.in) int N =sc.nextInt(); N sc.nextInt() sc.nextInt sc int V[] =new int[N]; V new int[N] N int C[] =new int[N]; C new int[N] N int x=0; x 0 for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{C[i-N]=V[i-N]-sc.nextInt();
           if(C[i-N]>0){x=x+C[i-N];}}} int i=0; int i=0; i 0 i<2*N i 2*N 2 N i++ i++ i {
      if(i<N){V[i]=sc.nextInt();}
      else{C[i-N]=V[i-N]-sc.nextInt();
           if(C[i-N]>0){x=x+C[i-N];}}} {
      if(i<N){V[i]=sc.nextInt();}
      else{C[i-N]=V[i-N]-sc.nextInt();
           if(C[i-N]>0){x=x+C[i-N];}}} if(i<N){V[i]=sc.nextInt();}
      else{C[i-N]=V[i-N]-sc.nextInt();
           if(C[i-N]>0){x=x+C[i-N];}} i<N i N {V[i]=sc.nextInt();} V[i]=sc.nextInt() V[i] V i sc.nextInt() sc.nextInt sc {C[i-N]=V[i-N]-sc.nextInt();
           if(C[i-N]>0){x=x+C[i-N];}} C[i-N]=V[i-N]-sc.nextInt() C[i-N] C i-N i N V[i-N]-sc.nextInt() V[i-N] V i-N i N sc.nextInt() sc.nextInt sc if(C[i-N]>0){x=x+C[i-N];} C[i-N]>0 C[i-N] C i-N i N 0 {x=x+C[i-N];} x=x+C[i-N] x x+C[i-N] x C[i-N] C i-N i N System.out.println(x) System.out.println System.out System System.out x String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int V[] =new int[N];
    int C[] =new int[N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{C[i-N]=V[i-N]-sc.nextInt();
           if(C[i-N]>0){x=x+C[i-N];}}}
    System.out.println(x);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int V[] =new int[N];
    int C[] =new int[N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{C[i-N]=V[i-N]-sc.nextInt();
           if(C[i-N]>0){x=x+C[i-N];}}}
    System.out.println(x);
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int V[] =new int[N];
    int C[] =new int[N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{C[i-N]=V[i-N]-sc.nextInt();
           if(C[i-N]>0){x=x+C[i-N];}}}
    System.out.println(x);
  }
}