import java.util.Scanner;

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

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] price = new int[N];
        
        for(int i = 0;i < N;i++) {
        	price[i] = sc.nextInt();
        }
        
        int benefit = 0;
        
        for(int i = 0;i < N;i++) {
        	int a = sc.nextInt();
        	if(price[i] > a) {
        		benefit += price[i] -a;
        	}
        }
        System.out.println(benefit);
    }
}