import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int[] d = new int[N];
		int sum = 0;

		for(int i=0; i<N ; i++) {
			V[i] = sc.nextInt();
		}

		//System.out.println(N);
		//System.out.println(V[0]+" "+V[N-1]);

		for(int i=0; i<N ; i++) {
			C[i] = sc.nextInt();
		}

		//System.out.println(sum);
		//System.out.println(C[0]+" "+C[N-1]);

		for(int i=0; i<N ; i++) {
			int di = V[i] - C[i];
			if(di > 0) {
				d[i] = di;
			}else {
				d[i] = 0;
			}
		}

		for(int i=0; i<N; i++) {
			sum += d[i];
		}

		System.out.println(sum);


	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int[] d = new int[N];
		int sum = 0;

		for(int i=0; i<N ; i++) {
			V[i] = sc.nextInt();
		}

		//System.out.println(N);
		//System.out.println(V[0]+" "+V[N-1]);

		for(int i=0; i<N ; i++) {
			C[i] = sc.nextInt();
		}

		//System.out.println(sum);
		//System.out.println(C[0]+" "+C[N-1]);

		for(int i=0; i<N ; i++) {
			int di = V[i] - C[i];
			if(di > 0) {
				d[i] = di;
			}else {
				d[i] = 0;
			}
		}

		for(int i=0; i<N; i++) {
			sum += d[i];
		}

		System.out.println(sum);


	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int[] d = new int[N];
		int sum = 0;

		for(int i=0; i<N ; i++) {
			V[i] = sc.nextInt();
		}

		//System.out.println(N);
		//System.out.println(V[0]+" "+V[N-1]);

		for(int i=0; i<N ; i++) {
			C[i] = sc.nextInt();
		}

		//System.out.println(sum);
		//System.out.println(C[0]+" "+C[N-1]);

		for(int i=0; i<N ; i++) {
			int di = V[i] - C[i];
			if(di > 0) {
				d[i] = di;
			}else {
				d[i] = 0;
			}
		}

		for(int i=0; i<N; i++) {
			sum += d[i];
		}

		System.out.println(sum);


	} main {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int[] d = new int[N];
		int sum = 0;

		for(int i=0; i<N ; i++) {
			V[i] = sc.nextInt();
		}

		//System.out.println(N);
		//System.out.println(V[0]+" "+V[N-1]);

		for(int i=0; i<N ; i++) {
			C[i] = sc.nextInt();
		}

		//System.out.println(sum);
		//System.out.println(C[0]+" "+C[N-1]);

		for(int i=0; i<N ; i++) {
			int di = V[i] - C[i];
			if(di > 0) {
				d[i] = di;
			}else {
				d[i] = 0;
			}
		}

		for(int i=0; i<N; i++) {
			sum += d[i];
		}

		System.out.println(sum);


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] V = new int[N]; V new int[N] N int[] C = new int[N]; C new int[N] N int[] d = new int[N]; d new int[N] N int sum = 0; sum 0 for(int i=0; i<N ; i++) {
			V[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			V[i] = sc.nextInt();
		} {
			V[i] = sc.nextInt();
		} V[i] = sc.nextInt() V[i] V i sc.nextInt() sc.nextInt sc for(int i=0; i<N ; i++) {
			C[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			C[i] = sc.nextInt();
		} {
			C[i] = sc.nextInt();
		} C[i] = sc.nextInt() C[i] C i sc.nextInt() sc.nextInt sc for(int i=0; i<N ; i++) {
			int di = V[i] - C[i];
			if(di > 0) {
				d[i] = di;
			}else {
				d[i] = 0;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int di = V[i] - C[i];
			if(di > 0) {
				d[i] = di;
			}else {
				d[i] = 0;
			}
		} {
			int di = V[i] - C[i];
			if(di > 0) {
				d[i] = di;
			}else {
				d[i] = 0;
			}
		} int di = V[i] - C[i]; di V[i] - C[i] V[i] V i C[i] C i if(di > 0) {
				d[i] = di;
			}else {
				d[i] = 0;
			} di > 0 di 0 {
				d[i] = di;
			} d[i] = di d[i] d i di {
				d[i] = 0;
			} d[i] = 0 d[i] d i 0 for(int i=0; i<N; i++) {
			sum += d[i];
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			sum += d[i];
		} {
			sum += d[i];
		} sum += d[i] sum d[i] d i System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int[] d = new int[N];
		int sum = 0;

		for(int i=0; i<N ; i++) {
			V[i] = sc.nextInt();
		}

		//System.out.println(N);
		//System.out.println(V[0]+" "+V[N-1]);

		for(int i=0; i<N ; i++) {
			C[i] = sc.nextInt();
		}

		//System.out.println(sum);
		//System.out.println(C[0]+" "+C[N-1]);

		for(int i=0; i<N ; i++) {
			int di = V[i] - C[i];
			if(di > 0) {
				d[i] = di;
			}else {
				d[i] = 0;
			}
		}

		for(int i=0; i<N; i++) {
			sum += d[i];
		}

		System.out.println(sum);


	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int[] d = new int[N];
		int sum = 0;

		for(int i=0; i<N ; i++) {
			V[i] = sc.nextInt();
		}

		//System.out.println(N);
		//System.out.println(V[0]+" "+V[N-1]);

		for(int i=0; i<N ; i++) {
			C[i] = sc.nextInt();
		}

		//System.out.println(sum);
		//System.out.println(C[0]+" "+C[N-1]);

		for(int i=0; i<N ; i++) {
			int di = V[i] - C[i];
			if(di > 0) {
				d[i] = di;
			}else {
				d[i] = 0;
			}
		}

		for(int i=0; i<N; i++) {
			sum += d[i];
		}

		System.out.println(sum);


	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int[] d = new int[N];
		int sum = 0;

		for(int i=0; i<N ; i++) {
			V[i] = sc.nextInt();
		}

		//System.out.println(N);
		//System.out.println(V[0]+" "+V[N-1]);

		for(int i=0; i<N ; i++) {
			C[i] = sc.nextInt();
		}

		//System.out.println(sum);
		//System.out.println(C[0]+" "+C[N-1]);

		for(int i=0; i<N ; i++) {
			int di = V[i] - C[i];
			if(di > 0) {
				d[i] = di;
			}else {
				d[i] = 0;
			}
		}

		for(int i=0; i<N; i++) {
			sum += d[i];
		}

		System.out.println(sum);


	}

}
