import java.io.*;
import java.math.*;
import java.util.*;
public class Main { 
 
	public static void main(String[] args) { 
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int ans = 0;
		for (int i = 0; i < N; i++) {
			V[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			C[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			if (V[i]-C[i]>0) ans+=V[i]-C[i];
		}
		System.out.println(ans);
	}
} import java.io.*; io.* java import java.math.*; math.* java import java.util.*; util.* java public class Main { 
 
	public static void main(String[] args) { 
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int ans = 0;
		for (int i = 0; i < N; i++) {
			V[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			C[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			if (V[i]-C[i]>0) ans+=V[i]-C[i];
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) { 
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int ans = 0;
		for (int i = 0; i < N; i++) {
			V[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			C[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			if (V[i]-C[i]>0) ans+=V[i]-C[i];
		}
		System.out.println(ans);
	} main { 
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int ans = 0;
		for (int i = 0; i < N; i++) {
			V[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			C[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			if (V[i]-C[i]>0) ans+=V[i]-C[i];
		}
		System.out.println(ans);
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int N = input.nextInt(); N input.nextInt() input.nextInt input int[] V = new int[N]; V new int[N] N int[] C = new int[N]; C new int[N] N int ans = 0; ans 0 for (int i = 0; i < N; i++) {
			V[i] = input.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			V[i] = input.nextInt();
		} {
			V[i] = input.nextInt();
		} V[i] = input.nextInt() V[i] V i input.nextInt() input.nextInt input for (int i = 0; i < N; i++) {
			C[i] = input.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			C[i] = input.nextInt();
		} {
			C[i] = input.nextInt();
		} C[i] = input.nextInt() C[i] C i input.nextInt() input.nextInt input for (int i = 0; i < N; i++) {
			if (V[i]-C[i]>0) ans+=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) ans+=V[i]-C[i];
		} {
			if (V[i]-C[i]>0) ans+=V[i]-C[i];
		} if (V[i]-C[i]>0) ans+=V[i]-C[i]; V[i]-C[i]>0 V[i]-C[i] V[i] V i C[i] C i 0 ans+=V[i]-C[i] ans V[i]-C[i] V[i] V i C[i] C i System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main { 
 
	public static void main(String[] args) { 
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int ans = 0;
		for (int i = 0; i < N; i++) {
			V[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			C[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			if (V[i]-C[i]>0) ans+=V[i]-C[i];
		}
		System.out.println(ans);
	}
} public class Main { 
 
	public static void main(String[] args) { 
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int ans = 0;
		for (int i = 0; i < N; i++) {
			V[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			C[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			if (V[i]-C[i]>0) ans+=V[i]-C[i];
		}
		System.out.println(ans);
	}
} Main
import java.io.*;
import java.math.*;
import java.util.*;
public class Main { 
 
	public static void main(String[] args) { 
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		int ans = 0;
		for (int i = 0; i < N; i++) {
			V[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			C[i] = input.nextInt();
		}
		for (int i = 0; i < N; i++) {
			if (V[i]-C[i]>0) ans+=V[i]-C[i];
		}
		System.out.println(ans);
	}
}