import java.util.Scanner;

class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int profit = 0;
		int[][] vc = new int [2][N];
		
		for(int i = 0; i < 2; i++) {
			for(int j = 0; j < N; j++) {
				vc[i][j] = sc.nextInt();
			}
		}
		
		for( int j = 0; j < N; j++) {
			if(vc[0][j] - vc[1][j] > 0) {
				profit += vc[0][j] - vc[1][j];
			}
		}
		System.out.println(profit);
	}
} 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 profit = 0;
		int[][] vc = new int [2][N];
		
		for(int i = 0; i < 2; i++) {
			for(int j = 0; j < N; j++) {
				vc[i][j] = sc.nextInt();
			}
		}
		
		for( int j = 0; j < N; j++) {
			if(vc[0][j] - vc[1][j] > 0) {
				profit += vc[0][j] - vc[1][j];
			}
		}
		System.out.println(profit);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int profit = 0;
		int[][] vc = new int [2][N];
		
		for(int i = 0; i < 2; i++) {
			for(int j = 0; j < N; j++) {
				vc[i][j] = sc.nextInt();
			}
		}
		
		for( int j = 0; j < N; j++) {
			if(vc[0][j] - vc[1][j] > 0) {
				profit += vc[0][j] - vc[1][j];
			}
		}
		System.out.println(profit);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int profit = 0;
		int[][] vc = new int [2][N];
		
		for(int i = 0; i < 2; i++) {
			for(int j = 0; j < N; j++) {
				vc[i][j] = sc.nextInt();
			}
		}
		
		for( int j = 0; j < N; j++) {
			if(vc[0][j] - vc[1][j] > 0) {
				profit += vc[0][j] - vc[1][j];
			}
		}
		System.out.println(profit);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int profit = 0; profit 0 int[][] vc = new int [2][N]; vc new int [2][N] 2 N for(int i = 0; i < 2; i++) {
			for(int j = 0; j < N; j++) {
				vc[i][j] = sc.nextInt();
			}
		} int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
			for(int j = 0; j < N; j++) {
				vc[i][j] = sc.nextInt();
			}
		} {
			for(int j = 0; j < N; j++) {
				vc[i][j] = sc.nextInt();
			}
		} for(int j = 0; j < N; j++) {
				vc[i][j] = sc.nextInt();
			} int j = 0; int j = 0; j 0 j < N j N j++ j++ j {
				vc[i][j] = sc.nextInt();
			} {
				vc[i][j] = sc.nextInt();
			} vc[i][j] = sc.nextInt() vc[i][j] vc[i] vc i j sc.nextInt() sc.nextInt sc for( int j = 0; j < N; j++) {
			if(vc[0][j] - vc[1][j] > 0) {
				profit += vc[0][j] - vc[1][j];
			}
		} int j = 0; int j = 0; j 0 j < N j N j++ j++ j {
			if(vc[0][j] - vc[1][j] > 0) {
				profit += vc[0][j] - vc[1][j];
			}
		} {
			if(vc[0][j] - vc[1][j] > 0) {
				profit += vc[0][j] - vc[1][j];
			}
		} if(vc[0][j] - vc[1][j] > 0) {
				profit += vc[0][j] - vc[1][j];
			} vc[0][j] - vc[1][j] > 0 vc[0][j] - vc[1][j] vc[0][j] vc[0] vc 0 j vc[1][j] vc[1] vc 1 j 0 {
				profit += vc[0][j] - vc[1][j];
			} profit += vc[0][j] - vc[1][j] profit vc[0][j] - vc[1][j] vc[0][j] vc[0] vc 0 j vc[1][j] vc[1] vc 1 j System.out.println(profit) System.out.println System.out System System.out profit 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 profit = 0;
		int[][] vc = new int [2][N];
		
		for(int i = 0; i < 2; i++) {
			for(int j = 0; j < N; j++) {
				vc[i][j] = sc.nextInt();
			}
		}
		
		for( int j = 0; j < N; j++) {
			if(vc[0][j] - vc[1][j] > 0) {
				profit += vc[0][j] - vc[1][j];
			}
		}
		System.out.println(profit);
	}
}