import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		
		int V[] = new int[N];
		for(int i = 0; i < N; i++) {
			V[i] = stdIn.nextInt();
		}
		int C[] = new int[N];
		for(int j = 0; j < N; j++) {
			C[j] = stdIn.nextInt();
		}
		
		int max = 0;
		for(int k = 0; k < N; k++) {
			if(V[k] > C[k]) {
				max += (V[k]-C[k]);
			}
		}
		System.out.println(max);

	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		
		int V[] = new int[N];
		for(int i = 0; i < N; i++) {
			V[i] = stdIn.nextInt();
		}
		int C[] = new int[N];
		for(int j = 0; j < N; j++) {
			C[j] = stdIn.nextInt();
		}
		
		int max = 0;
		for(int k = 0; k < N; k++) {
			if(V[k] > C[k]) {
				max += (V[k]-C[k]);
			}
		}
		System.out.println(max);

	}

} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		
		int V[] = new int[N];
		for(int i = 0; i < N; i++) {
			V[i] = stdIn.nextInt();
		}
		int C[] = new int[N];
		for(int j = 0; j < N; j++) {
			C[j] = stdIn.nextInt();
		}
		
		int max = 0;
		for(int k = 0; k < N; k++) {
			if(V[k] > C[k]) {
				max += (V[k]-C[k]);
			}
		}
		System.out.println(max);

	} main {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		
		int V[] = new int[N];
		for(int i = 0; i < N; i++) {
			V[i] = stdIn.nextInt();
		}
		int C[] = new int[N];
		for(int j = 0; j < N; j++) {
			C[j] = stdIn.nextInt();
		}
		
		int max = 0;
		for(int k = 0; k < N; k++) {
			if(V[k] > C[k]) {
				max += (V[k]-C[k]);
			}
		}
		System.out.println(max);

	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int V[] = new int[N]; V new int[N] N for(int i = 0; i < N; i++) {
			V[i] = stdIn.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			V[i] = stdIn.nextInt();
		} {
			V[i] = stdIn.nextInt();
		} V[i] = stdIn.nextInt() V[i] V i stdIn.nextInt() stdIn.nextInt stdIn int C[] = new int[N]; C new int[N] N for(int j = 0; j < N; j++) {
			C[j] = stdIn.nextInt();
		} int j = 0; int j = 0; j 0 j < N j N j++ j++ j {
			C[j] = stdIn.nextInt();
		} {
			C[j] = stdIn.nextInt();
		} C[j] = stdIn.nextInt() C[j] C j stdIn.nextInt() stdIn.nextInt stdIn int max = 0; max 0 for(int k = 0; k < N; k++) {
			if(V[k] > C[k]) {
				max += (V[k]-C[k]);
			}
		} int k = 0; int k = 0; k 0 k < N k N k++ k++ k {
			if(V[k] > C[k]) {
				max += (V[k]-C[k]);
			}
		} {
			if(V[k] > C[k]) {
				max += (V[k]-C[k]);
			}
		} if(V[k] > C[k]) {
				max += (V[k]-C[k]);
			} V[k] > C[k] V[k] V k C[k] C k {
				max += (V[k]-C[k]);
			} max += (V[k]-C[k]) max (V[k]-C[k]) V[k] V k C[k] C k System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		
		int V[] = new int[N];
		for(int i = 0; i < N; i++) {
			V[i] = stdIn.nextInt();
		}
		int C[] = new int[N];
		for(int j = 0; j < N; j++) {
			C[j] = stdIn.nextInt();
		}
		
		int max = 0;
		for(int k = 0; k < N; k++) {
			if(V[k] > C[k]) {
				max += (V[k]-C[k]);
			}
		}
		System.out.println(max);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		
		int V[] = new int[N];
		for(int i = 0; i < N; i++) {
			V[i] = stdIn.nextInt();
		}
		int C[] = new int[N];
		for(int j = 0; j < N; j++) {
			C[j] = stdIn.nextInt();
		}
		
		int max = 0;
		for(int k = 0; k < N; k++) {
			if(V[k] > C[k]) {
				max += (V[k]-C[k]);
			}
		}
		System.out.println(max);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		
		int V[] = new int[N];
		for(int i = 0; i < N; i++) {
			V[i] = stdIn.nextInt();
		}
		int C[] = new int[N];
		for(int j = 0; j < N; j++) {
			C[j] = stdIn.nextInt();
		}
		
		int max = 0;
		for(int k = 0; k < N; k++) {
			if(V[k] > C[k]) {
				max += (V[k]-C[k]);
			}
		}
		System.out.println(max);

	}

}