import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args)throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    int[] v = new int[n];
    int[] c = new int[n];

    String[] str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      v[i] = Integer.parseInt(str[i]);
    }
    str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      c[i] = Integer.parseInt(str[i]);
    }
    
    int diff = 0;
    int ans = 0;
    for(int i=0; i<n; i++) {
      diff = v[i]-c[i];
      if(diff>0)
        ans += diff;
    }
    
    System.out.println(ans);
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args)throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    int[] v = new int[n];
    int[] c = new int[n];

    String[] str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      v[i] = Integer.parseInt(str[i]);
    }
    str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      c[i] = Integer.parseInt(str[i]);
    }
    
    int diff = 0;
    int ans = 0;
    for(int i=0; i<n; i++) {
      diff = v[i]-c[i];
      if(diff>0)
        ans += diff;
    }
    
    System.out.println(ans);
  }
} Main public static void main(String[] args)throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    int[] v = new int[n];
    int[] c = new int[n];

    String[] str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      v[i] = Integer.parseInt(str[i]);
    }
    str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      c[i] = Integer.parseInt(str[i]);
    }
    
    int diff = 0;
    int ans = 0;
    for(int i=0; i<n; i++) {
      diff = v[i]-c[i];
      if(diff>0)
        ans += diff;
    }
    
    System.out.println(ans);
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    int[] v = new int[n];
    int[] c = new int[n];

    String[] str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      v[i] = Integer.parseInt(str[i]);
    }
    str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      c[i] = Integer.parseInt(str[i]);
    }
    
    int diff = 0;
    int ans = 0;
    for(int i=0; i<n; i++) {
      diff = v[i]-c[i];
      if(diff>0)
        ans += diff;
    }
    
    System.out.println(ans);
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(in.readLine()); n Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in int[] v = new int[n]; v new int[n] n int[] c = new int[n]; c new int[n] n String[] str = in.readLine().split(" "); str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " for(int i=0; i<n; i++) {
      v[i] = Integer.parseInt(str[i]);
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      v[i] = Integer.parseInt(str[i]);
    } {
      v[i] = Integer.parseInt(str[i]);
    } v[i] = Integer.parseInt(str[i]) v[i] v i Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i str = in.readLine().split(" ") str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " for(int i=0; i<n; i++) {
      c[i] = Integer.parseInt(str[i]);
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      c[i] = Integer.parseInt(str[i]);
    } {
      c[i] = Integer.parseInt(str[i]);
    } c[i] = Integer.parseInt(str[i]) c[i] c i Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i int diff = 0; diff 0 int ans = 0; ans 0 for(int i=0; i<n; i++) {
      diff = v[i]-c[i];
      if(diff>0)
        ans += diff;
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      diff = v[i]-c[i];
      if(diff>0)
        ans += diff;
    } {
      diff = v[i]-c[i];
      if(diff>0)
        ans += diff;
    } diff = v[i]-c[i] diff v[i]-c[i] v[i] v i c[i] c i if(diff>0)
        ans += diff; diff>0 diff 0 ans += diff ans diff System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
  public static void main(String[] args)throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    int[] v = new int[n];
    int[] c = new int[n];

    String[] str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      v[i] = Integer.parseInt(str[i]);
    }
    str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      c[i] = Integer.parseInt(str[i]);
    }
    
    int diff = 0;
    int ans = 0;
    for(int i=0; i<n; i++) {
      diff = v[i]-c[i];
      if(diff>0)
        ans += diff;
    }
    
    System.out.println(ans);
  }
} public class Main {
  public static void main(String[] args)throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    int[] v = new int[n];
    int[] c = new int[n];

    String[] str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      v[i] = Integer.parseInt(str[i]);
    }
    str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      c[i] = Integer.parseInt(str[i]);
    }
    
    int diff = 0;
    int ans = 0;
    for(int i=0; i<n; i++) {
      diff = v[i]-c[i];
      if(diff>0)
        ans += diff;
    }
    
    System.out.println(ans);
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args)throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    int[] v = new int[n];
    int[] c = new int[n];

    String[] str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      v[i] = Integer.parseInt(str[i]);
    }
    str = in.readLine().split(" ");
    for(int i=0; i<n; i++) {
      c[i] = Integer.parseInt(str[i]);
    }
    
    int diff = 0;
    int ans = 0;
    for(int i=0; i<n; i++) {
      diff = v[i]-c[i];
      if(diff>0)
        ans += diff;
    }
    
    System.out.println(ans);
  }
}