import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		
		int index = sc.nextInt();
		int V = 0;
		int C = 0;
		int[] value = new int[index];
		int[] cost = new int[index];
		
		for(int i = 0;i<index;i++) {
			value[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			cost[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			if(value[i] > cost[i]) {
				V += value[i];
				C += cost[i];
			}
		}
		System.out.println(V-C);
		
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		
		int index = sc.nextInt();
		int V = 0;
		int C = 0;
		int[] value = new int[index];
		int[] cost = new int[index];
		
		for(int i = 0;i<index;i++) {
			value[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			cost[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			if(value[i] > cost[i]) {
				V += value[i];
				C += cost[i];
			}
		}
		System.out.println(V-C);
		
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		
		int index = sc.nextInt();
		int V = 0;
		int C = 0;
		int[] value = new int[index];
		int[] cost = new int[index];
		
		for(int i = 0;i<index;i++) {
			value[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			cost[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			if(value[i] > cost[i]) {
				V += value[i];
				C += cost[i];
			}
		}
		System.out.println(V-C);
		
	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		
		int index = sc.nextInt();
		int V = 0;
		int C = 0;
		int[] value = new int[index];
		int[] cost = new int[index];
		
		for(int i = 0;i<index;i++) {
			value[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			cost[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			if(value[i] > cost[i]) {
				V += value[i];
				C += cost[i];
			}
		}
		System.out.println(V-C);
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int index = sc.nextInt(); index sc.nextInt() sc.nextInt sc int V = 0; V 0 int C = 0; C 0 int[] value = new int[index]; value new int[index] index int[] cost = new int[index]; cost new int[index] index for(int i = 0;i<index;i++) {
			value[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i<index i index i++ i++ i {
			value[i] = sc.nextInt();
		} {
			value[i] = sc.nextInt();
		} value[i] = sc.nextInt() value[i] value i sc.nextInt() sc.nextInt sc for(int i = 0;i<index;i++) {
			cost[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i<index i index i++ i++ i {
			cost[i] = sc.nextInt();
		} {
			cost[i] = sc.nextInt();
		} cost[i] = sc.nextInt() cost[i] cost i sc.nextInt() sc.nextInt sc for(int i = 0;i<index;i++) {
			if(value[i] > cost[i]) {
				V += value[i];
				C += cost[i];
			}
		} int i = 0; int i = 0; i 0 i<index i index i++ i++ i {
			if(value[i] > cost[i]) {
				V += value[i];
				C += cost[i];
			}
		} {
			if(value[i] > cost[i]) {
				V += value[i];
				C += cost[i];
			}
		} if(value[i] > cost[i]) {
				V += value[i];
				C += cost[i];
			} value[i] > cost[i] value[i] value i cost[i] cost i {
				V += value[i];
				C += cost[i];
			} V += value[i] V value[i] value i C += cost[i] C cost[i] cost i System.out.println(V-C) System.out.println System.out System System.out V-C V C String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		
		int index = sc.nextInt();
		int V = 0;
		int C = 0;
		int[] value = new int[index];
		int[] cost = new int[index];
		
		for(int i = 0;i<index;i++) {
			value[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			cost[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			if(value[i] > cost[i]) {
				V += value[i];
				C += cost[i];
			}
		}
		System.out.println(V-C);
		
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		
		int index = sc.nextInt();
		int V = 0;
		int C = 0;
		int[] value = new int[index];
		int[] cost = new int[index];
		
		for(int i = 0;i<index;i++) {
			value[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			cost[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			if(value[i] > cost[i]) {
				V += value[i];
				C += cost[i];
			}
		}
		System.out.println(V-C);
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		
		int index = sc.nextInt();
		int V = 0;
		int C = 0;
		int[] value = new int[index];
		int[] cost = new int[index];
		
		for(int i = 0;i<index;i++) {
			value[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			cost[i] = sc.nextInt();
		}
		for(int i = 0;i<index;i++) {
			if(value[i] > cost[i]) {
				V += value[i];
				C += cost[i];
			}
		}
		System.out.println(V-C);
		
	}

}
