import java.util.Scanner;

public class Main {
		public static void main(String[] args) {
			String strV, strC;
			int N, result = 0;
			int[] V = new int[20];
			int[] C = new int[20];

			Scanner scN = new Scanner(System.in);
			N = Integer.parseInt(scN.nextLine());
			strV = scN.nextLine();
			strC = scN.nextLine();

			for (int i = 0; i < N; i++) {
				V[i] = Integer.parseInt(strV.split(" ")[i]);
				C[i] = Integer.parseInt(strC.split(" ")[i]);
			}

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

			System.out.print(result);

			scN.close();
		}
} import java.util.Scanner; Scanner java.util public class Main {
		public static void main(String[] args) {
			String strV, strC;
			int N, result = 0;
			int[] V = new int[20];
			int[] C = new int[20];

			Scanner scN = new Scanner(System.in);
			N = Integer.parseInt(scN.nextLine());
			strV = scN.nextLine();
			strC = scN.nextLine();

			for (int i = 0; i < N; i++) {
				V[i] = Integer.parseInt(strV.split(" ")[i]);
				C[i] = Integer.parseInt(strC.split(" ")[i]);
			}

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

			System.out.print(result);

			scN.close();
		}
} Main public static void main(String[] args) {
			String strV, strC;
			int N, result = 0;
			int[] V = new int[20];
			int[] C = new int[20];

			Scanner scN = new Scanner(System.in);
			N = Integer.parseInt(scN.nextLine());
			strV = scN.nextLine();
			strC = scN.nextLine();

			for (int i = 0; i < N; i++) {
				V[i] = Integer.parseInt(strV.split(" ")[i]);
				C[i] = Integer.parseInt(strC.split(" ")[i]);
			}

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

			System.out.print(result);

			scN.close();
		} main {
			String strV, strC;
			int N, result = 0;
			int[] V = new int[20];
			int[] C = new int[20];

			Scanner scN = new Scanner(System.in);
			N = Integer.parseInt(scN.nextLine());
			strV = scN.nextLine();
			strC = scN.nextLine();

			for (int i = 0; i < N; i++) {
				V[i] = Integer.parseInt(strV.split(" ")[i]);
				C[i] = Integer.parseInt(strC.split(" ")[i]);
			}

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

			System.out.print(result);

			scN.close();
		} String strV strV strC; strC int N N result = 0; result 0 int[] V = new int[20]; V new int[20] 20 int[] C = new int[20]; C new int[20] 20 Scanner scN = new Scanner(System.in); scN new Scanner(System.in) N = Integer.parseInt(scN.nextLine()) N Integer.parseInt(scN.nextLine()) Integer.parseInt Integer scN.nextLine() scN.nextLine scN strV = scN.nextLine() strV scN.nextLine() scN.nextLine scN strC = scN.nextLine() strC scN.nextLine() scN.nextLine scN for (int i = 0; i < N; i++) {
				V[i] = Integer.parseInt(strV.split(" ")[i]);
				C[i] = Integer.parseInt(strC.split(" ")[i]);
			} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
				V[i] = Integer.parseInt(strV.split(" ")[i]);
				C[i] = Integer.parseInt(strC.split(" ")[i]);
			} {
				V[i] = Integer.parseInt(strV.split(" ")[i]);
				C[i] = Integer.parseInt(strC.split(" ")[i]);
			} V[i] = Integer.parseInt(strV.split(" ")[i]) V[i] V i Integer.parseInt(strV.split(" ")[i]) Integer.parseInt Integer strV.split(" ")[i] strV.split(" ") strV.split strV " " i C[i] = Integer.parseInt(strC.split(" ")[i]) C[i] C i Integer.parseInt(strC.split(" ")[i]) Integer.parseInt Integer strC.split(" ")[i] strC.split(" ") strC.split strC " " i for (int i = 0; i < N; i++) {
				if (V[i] - C[i] > 0) {
					result += V[i] - C[i];
				}
			} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
				if (V[i] - C[i] > 0) {
					result += V[i] - C[i];
				}
			} {
				if (V[i] - C[i] > 0) {
					result += V[i] - C[i];
				}
			} if (V[i] - C[i] > 0) {
					result += V[i] - C[i];
				} V[i] - C[i] > 0 V[i] - C[i] V[i] V i C[i] C i 0 {
					result += V[i] - C[i];
				} result += V[i] - C[i] result V[i] - C[i] V[i] V i C[i] C i System.out.print(result) System.out.print System.out System System.out result scN.close() scN.close scN String[] args args public class Main {
		public static void main(String[] args) {
			String strV, strC;
			int N, result = 0;
			int[] V = new int[20];
			int[] C = new int[20];

			Scanner scN = new Scanner(System.in);
			N = Integer.parseInt(scN.nextLine());
			strV = scN.nextLine();
			strC = scN.nextLine();

			for (int i = 0; i < N; i++) {
				V[i] = Integer.parseInt(strV.split(" ")[i]);
				C[i] = Integer.parseInt(strC.split(" ")[i]);
			}

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

			System.out.print(result);

			scN.close();
		}
} public class Main {
		public static void main(String[] args) {
			String strV, strC;
			int N, result = 0;
			int[] V = new int[20];
			int[] C = new int[20];

			Scanner scN = new Scanner(System.in);
			N = Integer.parseInt(scN.nextLine());
			strV = scN.nextLine();
			strC = scN.nextLine();

			for (int i = 0; i < N; i++) {
				V[i] = Integer.parseInt(strV.split(" ")[i]);
				C[i] = Integer.parseInt(strC.split(" ")[i]);
			}

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

			System.out.print(result);

			scN.close();
		}
} Main
import java.util.Scanner;

public class Main {
		public static void main(String[] args) {
			String strV, strC;
			int N, result = 0;
			int[] V = new int[20];
			int[] C = new int[20];

			Scanner scN = new Scanner(System.in);
			N = Integer.parseInt(scN.nextLine());
			strV = scN.nextLine();
			strC = scN.nextLine();

			for (int i = 0; i < N; i++) {
				V[i] = Integer.parseInt(strV.split(" ")[i]);
				C[i] = Integer.parseInt(strC.split(" ")[i]);
			}

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

			System.out.print(result);

			scN.close();
		}
}
