import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String V = sc.nextLine();
		String C = sc.nextLine();
		sc.close();
		
		String[] Vspl = V.split(" ");
		int[] Vi = new int[N];
		String[] Cspl = C.split(" ");
		int[] Ci = new int[N];
		
		int sum = 0;
		
		for(int i = 0;i < N;i++){
			Vi[i] = Integer.parseInt(Vspl[i]);
			Ci[i] = Integer.parseInt(Cspl[i]);
			if(Vi[i] - Ci[i] >= 0){
				sum += Vi[i] - Ci[i];
			}
		}
		System.out.println(sum);
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String V = sc.nextLine();
		String C = sc.nextLine();
		sc.close();
		
		String[] Vspl = V.split(" ");
		int[] Vi = new int[N];
		String[] Cspl = C.split(" ");
		int[] Ci = new int[N];
		
		int sum = 0;
		
		for(int i = 0;i < N;i++){
			Vi[i] = Integer.parseInt(Vspl[i]);
			Ci[i] = Integer.parseInt(Cspl[i]);
			if(Vi[i] - Ci[i] >= 0){
				sum += Vi[i] - Ci[i];
			}
		}
		System.out.println(sum);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String V = sc.nextLine();
		String C = sc.nextLine();
		sc.close();
		
		String[] Vspl = V.split(" ");
		int[] Vi = new int[N];
		String[] Cspl = C.split(" ");
		int[] Ci = new int[N];
		
		int sum = 0;
		
		for(int i = 0;i < N;i++){
			Vi[i] = Integer.parseInt(Vspl[i]);
			Ci[i] = Integer.parseInt(Cspl[i]);
			if(Vi[i] - Ci[i] >= 0){
				sum += Vi[i] - Ci[i];
			}
		}
		System.out.println(sum);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String V = sc.nextLine();
		String C = sc.nextLine();
		sc.close();
		
		String[] Vspl = V.split(" ");
		int[] Vi = new int[N];
		String[] Cspl = C.split(" ");
		int[] Ci = new int[N];
		
		int sum = 0;
		
		for(int i = 0;i < N;i++){
			Vi[i] = Integer.parseInt(Vspl[i]);
			Ci[i] = Integer.parseInt(Cspl[i]);
			if(Vi[i] - Ci[i] >= 0){
				sum += Vi[i] - Ci[i];
			}
		}
		System.out.println(sum);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.nextLine()); N Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String V = sc.nextLine(); V sc.nextLine() sc.nextLine sc String C = sc.nextLine(); C sc.nextLine() sc.nextLine sc sc.close() sc.close sc String[] Vspl = V.split(" "); Vspl V.split(" ") V.split V " " int[] Vi = new int[N]; Vi new int[N] N String[] Cspl = C.split(" "); Cspl C.split(" ") C.split C " " int[] Ci = new int[N]; Ci new int[N] N int sum = 0; sum 0 for(int i = 0;i < N;i++){
			Vi[i] = Integer.parseInt(Vspl[i]);
			Ci[i] = Integer.parseInt(Cspl[i]);
			if(Vi[i] - Ci[i] >= 0){
				sum += Vi[i] - Ci[i];
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			Vi[i] = Integer.parseInt(Vspl[i]);
			Ci[i] = Integer.parseInt(Cspl[i]);
			if(Vi[i] - Ci[i] >= 0){
				sum += Vi[i] - Ci[i];
			}
		} {
			Vi[i] = Integer.parseInt(Vspl[i]);
			Ci[i] = Integer.parseInt(Cspl[i]);
			if(Vi[i] - Ci[i] >= 0){
				sum += Vi[i] - Ci[i];
			}
		} Vi[i] = Integer.parseInt(Vspl[i]) Vi[i] Vi i Integer.parseInt(Vspl[i]) Integer.parseInt Integer Vspl[i] Vspl i Ci[i] = Integer.parseInt(Cspl[i]) Ci[i] Ci i Integer.parseInt(Cspl[i]) Integer.parseInt Integer Cspl[i] Cspl i if(Vi[i] - Ci[i] >= 0){
				sum += Vi[i] - Ci[i];
			} Vi[i] - Ci[i] >= 0 Vi[i] - Ci[i] Vi[i] Vi i Ci[i] Ci i 0 {
				sum += Vi[i] - Ci[i];
			} sum += Vi[i] - Ci[i] sum Vi[i] - Ci[i] Vi[i] Vi i Ci[i] Ci i System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String V = sc.nextLine();
		String C = sc.nextLine();
		sc.close();
		
		String[] Vspl = V.split(" ");
		int[] Vi = new int[N];
		String[] Cspl = C.split(" ");
		int[] Ci = new int[N];
		
		int sum = 0;
		
		for(int i = 0;i < N;i++){
			Vi[i] = Integer.parseInt(Vspl[i]);
			Ci[i] = Integer.parseInt(Cspl[i]);
			if(Vi[i] - Ci[i] >= 0){
				sum += Vi[i] - Ci[i];
			}
		}
		System.out.println(sum);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String V = sc.nextLine();
		String C = sc.nextLine();
		sc.close();
		
		String[] Vspl = V.split(" ");
		int[] Vi = new int[N];
		String[] Cspl = C.split(" ");
		int[] Ci = new int[N];
		
		int sum = 0;
		
		for(int i = 0;i < N;i++){
			Vi[i] = Integer.parseInt(Vspl[i]);
			Ci[i] = Integer.parseInt(Cspl[i]);
			if(Vi[i] - Ci[i] >= 0){
				sum += Vi[i] - Ci[i];
			}
		}
		System.out.println(sum);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = Integer.parseInt(sc.nextLine());
		String V = sc.nextLine();
		String C = sc.nextLine();
		sc.close();
		
		String[] Vspl = V.split(" ");
		int[] Vi = new int[N];
		String[] Cspl = C.split(" ");
		int[] Ci = new int[N];
		
		int sum = 0;
		
		for(int i = 0;i < N;i++){
			Vi[i] = Integer.parseInt(Vspl[i]);
			Ci[i] = Integer.parseInt(Cspl[i]);
			if(Vi[i] - Ci[i] >= 0){
				sum += Vi[i] - Ci[i];
			}
		}
		System.out.println(sum);
	}

}