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[] value = scan.nextLine().split(" ");
		String[] cost = scan.nextLine().split(" ");

		int ans = 0;


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

			int temp = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);

			ans = temp > 0 ? ans + temp : ans;
		}


		System.out.println(ans);
	}

} 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[] value = scan.nextLine().split(" ");
		String[] cost = scan.nextLine().split(" ");

		int ans = 0;


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

			int temp = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);

			ans = temp > 0 ? ans + temp : ans;
		}


		System.out.println(ans);
	}

} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = Integer.parseInt(scan.nextLine());
		String[] value = scan.nextLine().split(" ");
		String[] cost = scan.nextLine().split(" ");

		int ans = 0;


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

			int temp = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);

			ans = temp > 0 ? ans + temp : ans;
		}


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

		Scanner scan = new Scanner(System.in);

		int n = Integer.parseInt(scan.nextLine());
		String[] value = scan.nextLine().split(" ");
		String[] cost = scan.nextLine().split(" ");

		int ans = 0;


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

			int temp = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);

			ans = temp > 0 ? ans + temp : ans;
		}


		System.out.println(ans);
	} 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[] value = scan.nextLine().split(" "); value scan.nextLine().split(" ") scan.nextLine().split scan.nextLine() scan.nextLine scan " " String[] cost = scan.nextLine().split(" "); cost scan.nextLine().split(" ") scan.nextLine().split scan.nextLine() scan.nextLine scan " " int ans = 0; ans 0 for(int i = 0; i < n; i++) {

			int temp = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);

			ans = temp > 0 ? ans + temp : ans;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {

			int temp = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);

			ans = temp > 0 ? ans + temp : ans;
		} {

			int temp = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);

			ans = temp > 0 ? ans + temp : ans;
		} int temp = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]); temp Integer.parseInt(value[i]) - Integer.parseInt(cost[i]) Integer.parseInt(value[i]) Integer.parseInt Integer value[i] value i Integer.parseInt(cost[i]) Integer.parseInt Integer cost[i] cost i ans = temp > 0 ? ans + temp : ans ans temp > 0 ? ans + temp : ans temp > 0 temp 0 ans + temp ans temp ans 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 scan = new Scanner(System.in);

		int n = Integer.parseInt(scan.nextLine());
		String[] value = scan.nextLine().split(" ");
		String[] cost = scan.nextLine().split(" ");

		int ans = 0;


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

			int temp = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);

			ans = temp > 0 ? ans + temp : ans;
		}


		System.out.println(ans);
	}

} public class Main{

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = Integer.parseInt(scan.nextLine());
		String[] value = scan.nextLine().split(" ");
		String[] cost = scan.nextLine().split(" ");

		int ans = 0;


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

			int temp = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);

			ans = temp > 0 ? ans + temp : ans;
		}


		System.out.println(ans);
	}

} 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[] value = scan.nextLine().split(" ");
		String[] cost = scan.nextLine().split(" ");

		int ans = 0;


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

			int temp = Integer.parseInt(value[i]) - Integer.parseInt(cost[i]);

			ans = temp > 0 ? ans + temp : ans;
		}


		System.out.println(ans);
	}

}
