import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		int[] vn = new int[n];
		int[] cn = new int[n];
		int vMax = 0;
		for(int i = 0; i < n; i++) {
			vn[i] = sc.nextInt();
		}
		for(int i = 0; i < n; i++) {
			cn[i] = sc.nextInt();
			if(vn[i] > cn[i]) {
				vMax += vn[i] - cn[i];
			}
		}
		System.out.println(vMax);
	}

} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		int[] vn = new int[n];
		int[] cn = new int[n];
		int vMax = 0;
		for(int i = 0; i < n; i++) {
			vn[i] = sc.nextInt();
		}
		for(int i = 0; i < n; i++) {
			cn[i] = sc.nextInt();
			if(vn[i] > cn[i]) {
				vMax += vn[i] - cn[i];
			}
		}
		System.out.println(vMax);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		int[] vn = new int[n];
		int[] cn = new int[n];
		int vMax = 0;
		for(int i = 0; i < n; i++) {
			vn[i] = sc.nextInt();
		}
		for(int i = 0; i < n; i++) {
			cn[i] = sc.nextInt();
			if(vn[i] > cn[i]) {
				vMax += vn[i] - cn[i];
			}
		}
		System.out.println(vMax);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		int[] vn = new int[n];
		int[] cn = new int[n];
		int vMax = 0;
		for(int i = 0; i < n; i++) {
			vn[i] = sc.nextInt();
		}
		for(int i = 0; i < n; i++) {
			cn[i] = sc.nextInt();
			if(vn[i] > cn[i]) {
				vMax += vn[i] - cn[i];
			}
		}
		System.out.println(vMax);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc int[] vn = new int[n]; vn new int[n] n int[] cn = new int[n]; cn new int[n] n int vMax = 0; vMax 0 for(int i = 0; i < n; i++) {
			vn[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			vn[i] = sc.nextInt();
		} {
			vn[i] = sc.nextInt();
		} vn[i] = sc.nextInt() vn[i] vn i sc.nextInt() sc.nextInt sc for(int i = 0; i < n; i++) {
			cn[i] = sc.nextInt();
			if(vn[i] > cn[i]) {
				vMax += vn[i] - cn[i];
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			cn[i] = sc.nextInt();
			if(vn[i] > cn[i]) {
				vMax += vn[i] - cn[i];
			}
		} {
			cn[i] = sc.nextInt();
			if(vn[i] > cn[i]) {
				vMax += vn[i] - cn[i];
			}
		} cn[i] = sc.nextInt() cn[i] cn i sc.nextInt() sc.nextInt sc if(vn[i] > cn[i]) {
				vMax += vn[i] - cn[i];
			} vn[i] > cn[i] vn[i] vn i cn[i] cn i {
				vMax += vn[i] - cn[i];
			} vMax += vn[i] - cn[i] vMax vn[i] - cn[i] vn[i] vn i cn[i] cn i System.out.println(vMax) System.out.println System.out System System.out vMax String[] args args public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		int[] vn = new int[n];
		int[] cn = new int[n];
		int vMax = 0;
		for(int i = 0; i < n; i++) {
			vn[i] = sc.nextInt();
		}
		for(int i = 0; i < n; i++) {
			cn[i] = sc.nextInt();
			if(vn[i] > cn[i]) {
				vMax += vn[i] - cn[i];
			}
		}
		System.out.println(vMax);
	}

} public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		int[] vn = new int[n];
		int[] cn = new int[n];
		int vMax = 0;
		for(int i = 0; i < n; i++) {
			vn[i] = sc.nextInt();
		}
		for(int i = 0; i < n; i++) {
			cn[i] = sc.nextInt();
			if(vn[i] > cn[i]) {
				vMax += vn[i] - cn[i];
			}
		}
		System.out.println(vMax);
	}

} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.nextLine());
		int[] vn = new int[n];
		int[] cn = new int[n];
		int vMax = 0;
		for(int i = 0; i < n; i++) {
			vn[i] = sc.nextInt();
		}
		for(int i = 0; i < n; i++) {
			cn[i] = sc.nextInt();
			if(vn[i] > cn[i]) {
				vMax += vn[i] - cn[i];
			}
		}
		System.out.println(vMax);
	}

}
