import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] v = new int[N], c = new int[N];
		int sum = 0;

		for(int i = 0;i<N;i++)
			v[i] = sc.nextInt();

		for(int j = 0; j<N; j++)
			c[j] = sc.nextInt();

		for(int i = 0;i < N;i++) {
			int b = v[i] - c[i];
			if(b>0)
				sum+=b;
		}

		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 = sc.nextInt();
		int[] v = new int[N], c = new int[N];
		int sum = 0;

		for(int i = 0;i<N;i++)
			v[i] = sc.nextInt();

		for(int j = 0; j<N; j++)
			c[j] = sc.nextInt();

		for(int i = 0;i < N;i++) {
			int b = v[i] - c[i];
			if(b>0)
				sum+=b;
		}

		System.out.println(sum);
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] v = new int[N], c = new int[N];
		int sum = 0;

		for(int i = 0;i<N;i++)
			v[i] = sc.nextInt();

		for(int j = 0; j<N; j++)
			c[j] = sc.nextInt();

		for(int i = 0;i < N;i++) {
			int b = v[i] - c[i];
			if(b>0)
				sum+=b;
		}

		System.out.println(sum);
	} main {

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] v = new int[N], c = new int[N];
		int sum = 0;

		for(int i = 0;i<N;i++)
			v[i] = sc.nextInt();

		for(int j = 0; j<N; j++)
			c[j] = sc.nextInt();

		for(int i = 0;i < N;i++) {
			int b = v[i] - c[i];
			if(b>0)
				sum+=b;
		}

		System.out.println(sum);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] v = new int[N] v new int[N] N c = new int[N]; c new int[N] N int sum = 0; sum 0 for(int i = 0;i<N;i++)
			v[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i<N i N i++ i++ i v[i] = sc.nextInt(); v[i] = sc.nextInt() v[i] v i sc.nextInt() sc.nextInt sc for(int j = 0; j<N; j++)
			c[j] = sc.nextInt(); int j = 0; int j = 0; j 0 j<N j N j++ j++ j c[j] = sc.nextInt(); c[j] = sc.nextInt() c[j] c j sc.nextInt() sc.nextInt sc for(int i = 0;i < N;i++) {
			int b = v[i] - c[i];
			if(b>0)
				sum+=b;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int b = v[i] - c[i];
			if(b>0)
				sum+=b;
		} {
			int b = v[i] - c[i];
			if(b>0)
				sum+=b;
		} int b = v[i] - c[i]; b v[i] - c[i] v[i] v i c[i] c i if(b>0)
				sum+=b; b>0 b 0 sum+=b sum b 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 = sc.nextInt();
		int[] v = new int[N], c = new int[N];
		int sum = 0;

		for(int i = 0;i<N;i++)
			v[i] = sc.nextInt();

		for(int j = 0; j<N; j++)
			c[j] = sc.nextInt();

		for(int i = 0;i < N;i++) {
			int b = v[i] - c[i];
			if(b>0)
				sum+=b;
		}

		System.out.println(sum);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] v = new int[N], c = new int[N];
		int sum = 0;

		for(int i = 0;i<N;i++)
			v[i] = sc.nextInt();

		for(int j = 0; j<N; j++)
			c[j] = sc.nextInt();

		for(int i = 0;i < N;i++) {
			int b = v[i] - c[i];
			if(b>0)
				sum+=b;
		}

		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 = sc.nextInt();
		int[] v = new int[N], c = new int[N];
		int sum = 0;

		for(int i = 0;i<N;i++)
			v[i] = sc.nextInt();

		for(int j = 0; j<N; j++)
			c[j] = sc.nextInt();

		for(int i = 0;i < N;i++) {
			int b = v[i] - c[i];
			if(b>0)
				sum+=b;
		}

		System.out.println(sum);
	}
}