import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.nextLine() );

		String InStr = scan.nextLine();
		String[] sV = InStr.split(" ");

		InStr = scan.nextLine();
		String[] sC = InStr.split(" ");

		int cost = 0;
		int V;
		int C;

		for (int i = 0; i < N; i++) {

			V = Integer.parseInt(sV[i]);
			C = Integer.parseInt(sC[i]);

			if( V - C > 0) {
				cost = cost + (V - C);
			}

		}
		System.out.println(cost);

		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.nextLine() );

		String InStr = scan.nextLine();
		String[] sV = InStr.split(" ");

		InStr = scan.nextLine();
		String[] sC = InStr.split(" ");

		int cost = 0;
		int V;
		int C;

		for (int i = 0; i < N; i++) {

			V = Integer.parseInt(sV[i]);
			C = Integer.parseInt(sC[i]);

			if( V - C > 0) {
				cost = cost + (V - C);
			}

		}
		System.out.println(cost);

		scan.close();
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.nextLine() );

		String InStr = scan.nextLine();
		String[] sV = InStr.split(" ");

		InStr = scan.nextLine();
		String[] sC = InStr.split(" ");

		int cost = 0;
		int V;
		int C;

		for (int i = 0; i < N; i++) {

			V = Integer.parseInt(sV[i]);
			C = Integer.parseInt(sC[i]);

			if( V - C > 0) {
				cost = cost + (V - C);
			}

		}
		System.out.println(cost);

		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.nextLine() );

		String InStr = scan.nextLine();
		String[] sV = InStr.split(" ");

		InStr = scan.nextLine();
		String[] sC = InStr.split(" ");

		int cost = 0;
		int V;
		int C;

		for (int i = 0; i < N; i++) {

			V = Integer.parseInt(sV[i]);
			C = Integer.parseInt(sC[i]);

			if( V - C > 0) {
				cost = cost + (V - C);
			}

		}
		System.out.println(cost);

		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = Integer.parseInt(scan.nextLine() ); N Integer.parseInt(scan.nextLine() ) Integer.parseInt Integer scan.nextLine() scan.nextLine scan String InStr = scan.nextLine(); InStr scan.nextLine() scan.nextLine scan String[] sV = InStr.split(" "); sV InStr.split(" ") InStr.split InStr " " InStr = scan.nextLine() InStr scan.nextLine() scan.nextLine scan String[] sC = InStr.split(" "); sC InStr.split(" ") InStr.split InStr " " int cost = 0; cost 0 int V; V int C; C for (int i = 0; i < N; i++) {

			V = Integer.parseInt(sV[i]);
			C = Integer.parseInt(sC[i]);

			if( V - C > 0) {
				cost = cost + (V - C);
			}

		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {

			V = Integer.parseInt(sV[i]);
			C = Integer.parseInt(sC[i]);

			if( V - C > 0) {
				cost = cost + (V - C);
			}

		} {

			V = Integer.parseInt(sV[i]);
			C = Integer.parseInt(sC[i]);

			if( V - C > 0) {
				cost = cost + (V - C);
			}

		} V = Integer.parseInt(sV[i]) V Integer.parseInt(sV[i]) Integer.parseInt Integer sV[i] sV i C = Integer.parseInt(sC[i]) C Integer.parseInt(sC[i]) Integer.parseInt Integer sC[i] sC i if( V - C > 0) {
				cost = cost + (V - C);
			} V - C > 0 V - C V C 0 {
				cost = cost + (V - C);
			} cost = cost + (V - C) cost cost + (V - C) cost (V - C) V C System.out.println(cost) System.out.println System.out System System.out cost scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.nextLine() );

		String InStr = scan.nextLine();
		String[] sV = InStr.split(" ");

		InStr = scan.nextLine();
		String[] sC = InStr.split(" ");

		int cost = 0;
		int V;
		int C;

		for (int i = 0; i < N; i++) {

			V = Integer.parseInt(sV[i]);
			C = Integer.parseInt(sC[i]);

			if( V - C > 0) {
				cost = cost + (V - C);
			}

		}
		System.out.println(cost);

		scan.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.nextLine() );

		String InStr = scan.nextLine();
		String[] sV = InStr.split(" ");

		InStr = scan.nextLine();
		String[] sC = InStr.split(" ");

		int cost = 0;
		int V;
		int C;

		for (int i = 0; i < N; i++) {

			V = Integer.parseInt(sV[i]);
			C = Integer.parseInt(sC[i]);

			if( V - C > 0) {
				cost = cost + (V - C);
			}

		}
		System.out.println(cost);

		scan.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int N = Integer.parseInt(scan.nextLine() );

		String InStr = scan.nextLine();
		String[] sV = InStr.split(" ");

		InStr = scan.nextLine();
		String[] sC = InStr.split(" ");

		int cost = 0;
		int V;
		int C;

		for (int i = 0; i < N; i++) {

			V = Integer.parseInt(sV[i]);
			C = Integer.parseInt(sC[i]);

			if( V - C > 0) {
				cost = cost + (V - C);
			}

		}
		System.out.println(cost);

		scan.close();
	}
}
