import java.util.*;
import java.io.*;

public class Main{
 public static void main(String[] args){
   Scanner s = new Scanner(System.in);
   int n = s.nextInt();
   int[] v = new int[n];
   
   int profit =0;
   for(int i=0; i<n; i++){
    v[i] = s.nextInt(); 
   }
   
   for(int j=0; j<n; j++){
    profit = profit + Math.max(0,v[j] - s.nextInt());
   }
   
   System.out.print(profit);
 }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
 public static void main(String[] args){
   Scanner s = new Scanner(System.in);
   int n = s.nextInt();
   int[] v = new int[n];
   
   int profit =0;
   for(int i=0; i<n; i++){
    v[i] = s.nextInt(); 
   }
   
   for(int j=0; j<n; j++){
    profit = profit + Math.max(0,v[j] - s.nextInt());
   }
   
   System.out.print(profit);
 }
} Main public static void main(String[] args){
   Scanner s = new Scanner(System.in);
   int n = s.nextInt();
   int[] v = new int[n];
   
   int profit =0;
   for(int i=0; i<n; i++){
    v[i] = s.nextInt(); 
   }
   
   for(int j=0; j<n; j++){
    profit = profit + Math.max(0,v[j] - s.nextInt());
   }
   
   System.out.print(profit);
 } main {
   Scanner s = new Scanner(System.in);
   int n = s.nextInt();
   int[] v = new int[n];
   
   int profit =0;
   for(int i=0; i<n; i++){
    v[i] = s.nextInt(); 
   }
   
   for(int j=0; j<n; j++){
    profit = profit + Math.max(0,v[j] - s.nextInt());
   }
   
   System.out.print(profit);
 } Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s int[] v = new int[n]; v new int[n] n int profit =0; profit 0 for(int i=0; i<n; i++){
    v[i] = s.nextInt(); 
   } int i=0; int i=0; i 0 i<n i n i++ i++ i {
    v[i] = s.nextInt(); 
   } {
    v[i] = s.nextInt(); 
   } v[i] = s.nextInt() v[i] v i s.nextInt() s.nextInt s for(int j=0; j<n; j++){
    profit = profit + Math.max(0,v[j] - s.nextInt());
   } int j=0; int j=0; j 0 j<n j n j++ j++ j {
    profit = profit + Math.max(0,v[j] - s.nextInt());
   } {
    profit = profit + Math.max(0,v[j] - s.nextInt());
   } profit = profit + Math.max(0,v[j] - s.nextInt()) profit profit + Math.max(0,v[j] - s.nextInt()) profit Math.max(0,v[j] - s.nextInt()) Math.max Math 0 v[j] - s.nextInt() v[j] v j s.nextInt() s.nextInt s System.out.print(profit) System.out.print System.out System System.out profit String[] args args public class Main{
 public static void main(String[] args){
   Scanner s = new Scanner(System.in);
   int n = s.nextInt();
   int[] v = new int[n];
   
   int profit =0;
   for(int i=0; i<n; i++){
    v[i] = s.nextInt(); 
   }
   
   for(int j=0; j<n; j++){
    profit = profit + Math.max(0,v[j] - s.nextInt());
   }
   
   System.out.print(profit);
 }
} public class Main{
 public static void main(String[] args){
   Scanner s = new Scanner(System.in);
   int n = s.nextInt();
   int[] v = new int[n];
   
   int profit =0;
   for(int i=0; i<n; i++){
    v[i] = s.nextInt(); 
   }
   
   for(int j=0; j<n; j++){
    profit = profit + Math.max(0,v[j] - s.nextInt());
   }
   
   System.out.print(profit);
 }
} Main
import java.util.*;
import java.io.*;

public class Main{
 public static void main(String[] args){
   Scanner s = new Scanner(System.in);
   int n = s.nextInt();
   int[] v = new int[n];
   
   int profit =0;
   for(int i=0; i<n; i++){
    v[i] = s.nextInt(); 
   }
   
   for(int j=0; j<n; j++){
    profit = profit + Math.max(0,v[j] - s.nextInt());
   }
   
   System.out.print(profit);
 }
}