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();
		}
}

/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz