import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int answer = 0;
		
		for(int i = 0; i < N; i++){

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

			C[i] = scanner.nextInt();
		}
		for(int i = 0; i < N; i++){
		
			if (V[i] - C[i] > 0){
				
				answer = answer + (V[i] - C[i]); 
			}
		}
		System.out.println(answer);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int answer = 0;
		
		for(int i = 0; i < N; i++){

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

			C[i] = scanner.nextInt();
		}
		for(int i = 0; i < N; i++){
		
			if (V[i] - C[i] > 0){
				
				answer = answer + (V[i] - C[i]); 
			}
		}
		System.out.println(answer);
	}
} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int answer = 0;
		
		for(int i = 0; i < N; i++){

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

			C[i] = scanner.nextInt();
		}
		for(int i = 0; i < N; i++){
		
			if (V[i] - C[i] > 0){
				
				answer = answer + (V[i] - C[i]); 
			}
		}
		System.out.println(answer);
	} main {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int answer = 0;
		
		for(int i = 0; i < N; i++){

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

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

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

			V[i] = scanner.nextInt();
		} {

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

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

			C[i] = scanner.nextInt();
		} {

			C[i] = scanner.nextInt();
		} C[i] = scanner.nextInt() C[i] C i scanner.nextInt() scanner.nextInt scanner for(int i = 0; i < N; i++){
		
			if (V[i] - C[i] > 0){
				
				answer = answer + (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){
				
				answer = answer + (V[i] - C[i]); 
			}
		} {
		
			if (V[i] - C[i] > 0){
				
				answer = answer + (V[i] - C[i]); 
			}
		} if (V[i] - C[i] > 0){
				
				answer = answer + (V[i] - C[i]); 
			} V[i] - C[i] > 0 V[i] - C[i] V[i] V i C[i] C i 0 {
				
				answer = answer + (V[i] - C[i]); 
			} answer = answer + (V[i] - C[i]) answer answer + (V[i] - C[i]) answer (V[i] - C[i]) V[i] V i C[i] C i System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int answer = 0;
		
		for(int i = 0; i < N; i++){

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

			C[i] = scanner.nextInt();
		}
		for(int i = 0; i < N; i++){
		
			if (V[i] - C[i] > 0){
				
				answer = answer + (V[i] - C[i]); 
			}
		}
		System.out.println(answer);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int answer = 0;
		
		for(int i = 0; i < N; i++){

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

			C[i] = scanner.nextInt();
		}
		for(int i = 0; i < N; i++){
		
			if (V[i] - C[i] > 0){
				
				answer = answer + (V[i] - C[i]); 
			}
		}
		System.out.println(answer);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int answer = 0;
		
		for(int i = 0; i < N; i++){

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

			C[i] = scanner.nextInt();
		}
		for(int i = 0; i < N; i++){
		
			if (V[i] - C[i] > 0){
				
				answer = answer + (V[i] - C[i]); 
			}
		}
		System.out.println(answer);
	}
}
