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+N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{V[i]=V[i-N]-sc.nextInt();
           if(V[i]>0){x=x+V[i];}}}
    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+N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{V[i]=V[i-N]-sc.nextInt();
           if(V[i]>0){x=x+V[i];}}}
    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+N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{V[i]=V[i-N]-sc.nextInt();
           if(V[i]>0){x=x+V[i];}}}
    System.out.println(x);
  } main {
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int V[] =new int[N+N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{V[i]=V[i-N]-sc.nextInt();
           if(V[i]>0){x=x+V[i];}}}
    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+N]; V new int[N+N] N+N N N int x=0; x 0 for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{V[i]=V[i-N]-sc.nextInt();
           if(V[i]>0){x=x+V[i];}}} 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{V[i]=V[i-N]-sc.nextInt();
           if(V[i]>0){x=x+V[i];}}} {
      if(i<N){V[i]=sc.nextInt();}
      else{V[i]=V[i-N]-sc.nextInt();
           if(V[i]>0){x=x+V[i];}}} if(i<N){V[i]=sc.nextInt();}
      else{V[i]=V[i-N]-sc.nextInt();
           if(V[i]>0){x=x+V[i];}} i<N i N {V[i]=sc.nextInt();} V[i]=sc.nextInt() V[i] V i sc.nextInt() sc.nextInt sc {V[i]=V[i-N]-sc.nextInt();
           if(V[i]>0){x=x+V[i];}} V[i]=V[i-N]-sc.nextInt() V[i] V i V[i-N]-sc.nextInt() V[i-N] V i-N i N sc.nextInt() sc.nextInt sc if(V[i]>0){x=x+V[i];} V[i]>0 V[i] V i 0 {x=x+V[i];} x=x+V[i] x x+V[i] x V[i] V i 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+N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{V[i]=V[i-N]-sc.nextInt();
           if(V[i]>0){x=x+V[i];}}}
    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+N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{V[i]=V[i-N]-sc.nextInt();
           if(V[i]>0){x=x+V[i];}}}
    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+N];
    int x=0;
    for(int i=0;i<2*N;i++){
      if(i<N){V[i]=sc.nextInt();}
      else{V[i]=V[i-N]-sc.nextInt();
           if(V[i]>0){x=x+V[i];}}}
    System.out.println(x);
  }
}