import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String[] kachi = br.readLine().split(" ");
		String[] cost = br.readLine().split(" ");

		int k = 0;
		int c = 0;
		int sum = 0;

		for(int i=0;i<n;i++) {
			k = Integer.parseInt(kachi[i]);
			c = Integer.parseInt(cost[i]);

			if(k-c>0) {
				sum += k-c;
			}

		}


		System.out.println(sum);

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String[] kachi = br.readLine().split(" ");
		String[] cost = br.readLine().split(" ");

		int k = 0;
		int c = 0;
		int sum = 0;

		for(int i=0;i<n;i++) {
			k = Integer.parseInt(kachi[i]);
			c = Integer.parseInt(cost[i]);

			if(k-c>0) {
				sum += k-c;
			}

		}


		System.out.println(sum);

	}

} Main public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String[] kachi = br.readLine().split(" ");
		String[] cost = br.readLine().split(" ");

		int k = 0;
		int c = 0;
		int sum = 0;

		for(int i=0;i<n;i++) {
			k = Integer.parseInt(kachi[i]);
			c = Integer.parseInt(cost[i]);

			if(k-c>0) {
				sum += k-c;
			}

		}


		System.out.println(sum);

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String[] kachi = br.readLine().split(" ");
		String[] cost = br.readLine().split(" ");

		int k = 0;
		int c = 0;
		int sum = 0;

		for(int i=0;i<n;i++) {
			k = Integer.parseInt(kachi[i]);
			c = Integer.parseInt(cost[i]);

			if(k-c>0) {
				sum += k-c;
			}

		}


		System.out.println(sum);

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String[] kachi = br.readLine().split(" "); kachi br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " String[] cost = br.readLine().split(" "); cost br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int k = 0; k 0 int c = 0; c 0 int sum = 0; sum 0 for(int i=0;i<n;i++) {
			k = Integer.parseInt(kachi[i]);
			c = Integer.parseInt(cost[i]);

			if(k-c>0) {
				sum += k-c;
			}

		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			k = Integer.parseInt(kachi[i]);
			c = Integer.parseInt(cost[i]);

			if(k-c>0) {
				sum += k-c;
			}

		} {
			k = Integer.parseInt(kachi[i]);
			c = Integer.parseInt(cost[i]);

			if(k-c>0) {
				sum += k-c;
			}

		} k = Integer.parseInt(kachi[i]) k Integer.parseInt(kachi[i]) Integer.parseInt Integer kachi[i] kachi i c = Integer.parseInt(cost[i]) c Integer.parseInt(cost[i]) Integer.parseInt Integer cost[i] cost i if(k-c>0) {
				sum += k-c;
			} k-c>0 k-c k c 0 {
				sum += k-c;
			} sum += k-c sum k-c k c 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) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String[] kachi = br.readLine().split(" ");
		String[] cost = br.readLine().split(" ");

		int k = 0;
		int c = 0;
		int sum = 0;

		for(int i=0;i<n;i++) {
			k = Integer.parseInt(kachi[i]);
			c = Integer.parseInt(cost[i]);

			if(k-c>0) {
				sum += k-c;
			}

		}


		System.out.println(sum);

	}

} public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String[] kachi = br.readLine().split(" ");
		String[] cost = br.readLine().split(" ");

		int k = 0;
		int c = 0;
		int sum = 0;

		for(int i=0;i<n;i++) {
			k = Integer.parseInt(kachi[i]);
			c = Integer.parseInt(cost[i]);

			if(k-c>0) {
				sum += k-c;
			}

		}


		System.out.println(sum);

	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());
		String[] kachi = br.readLine().split(" ");
		String[] cost = br.readLine().split(" ");

		int k = 0;
		int c = 0;
		int sum = 0;

		for(int i=0;i<n;i++) {
			k = Integer.parseInt(kachi[i]);
			c = Integer.parseInt(cost[i]);

			if(k-c>0) {
				sum += k-c;
			}

		}


		System.out.println(sum);

	}

}
