import java.util.Scanner;

public class Main
{

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

		int n = Integer.parseInt(sc.next());
		
		int[][] value = new int[n][2];
		
		for (int i = 0; i < n; i++) {
			value[i][0] = Integer.parseInt(sc.next());
		}
		
		for (int i = 0; i < n; i++) {
			value[i][1] = Integer.parseInt(sc.next());
		}
		
		int maxvalue = 0;
		
		for (int i = 0; i < n; i++) {
			if (value[i][0] - value[i][1] > 0) maxvalue += value[i][0] - value[i][1];
		}

		
		System.out.println(maxvalue);
		
		sc.close();
	}
	
} import java.util.Scanner; Scanner java.util public class Main
{

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

		int n = Integer.parseInt(sc.next());
		
		int[][] value = new int[n][2];
		
		for (int i = 0; i < n; i++) {
			value[i][0] = Integer.parseInt(sc.next());
		}
		
		for (int i = 0; i < n; i++) {
			value[i][1] = Integer.parseInt(sc.next());
		}
		
		int maxvalue = 0;
		
		for (int i = 0; i < n; i++) {
			if (value[i][0] - value[i][1] > 0) maxvalue += value[i][0] - value[i][1];
		}

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

		int n = Integer.parseInt(sc.next());
		
		int[][] value = new int[n][2];
		
		for (int i = 0; i < n; i++) {
			value[i][0] = Integer.parseInt(sc.next());
		}
		
		for (int i = 0; i < n; i++) {
			value[i][1] = Integer.parseInt(sc.next());
		}
		
		int maxvalue = 0;
		
		for (int i = 0; i < n; i++) {
			if (value[i][0] - value[i][1] > 0) maxvalue += value[i][0] - value[i][1];
		}

		
		System.out.println(maxvalue);
		
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		int n = Integer.parseInt(sc.next());
		
		int[][] value = new int[n][2];
		
		for (int i = 0; i < n; i++) {
			value[i][0] = Integer.parseInt(sc.next());
		}
		
		for (int i = 0; i < n; i++) {
			value[i][1] = Integer.parseInt(sc.next());
		}
		
		int maxvalue = 0;
		
		for (int i = 0; i < n; i++) {
			if (value[i][0] - value[i][1] > 0) maxvalue += value[i][0] - value[i][1];
		}

		
		System.out.println(maxvalue);
		
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[][] value = new int[n][2]; value new int[n][2] n 2 for (int i = 0; i < n; i++) {
			value[i][0] = Integer.parseInt(sc.next());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			value[i][0] = Integer.parseInt(sc.next());
		} {
			value[i][0] = Integer.parseInt(sc.next());
		} value[i][0] = Integer.parseInt(sc.next()) value[i][0] value[i] value i 0 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc for (int i = 0; i < n; i++) {
			value[i][1] = Integer.parseInt(sc.next());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			value[i][1] = Integer.parseInt(sc.next());
		} {
			value[i][1] = Integer.parseInt(sc.next());
		} value[i][1] = Integer.parseInt(sc.next()) value[i][1] value[i] value i 1 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int maxvalue = 0; maxvalue 0 for (int i = 0; i < n; i++) {
			if (value[i][0] - value[i][1] > 0) maxvalue += value[i][0] - value[i][1];
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			if (value[i][0] - value[i][1] > 0) maxvalue += value[i][0] - value[i][1];
		} {
			if (value[i][0] - value[i][1] > 0) maxvalue += value[i][0] - value[i][1];
		} if (value[i][0] - value[i][1] > 0) maxvalue += value[i][0] - value[i][1]; value[i][0] - value[i][1] > 0 value[i][0] - value[i][1] value[i][0] value[i] value i 0 value[i][1] value[i] value i 1 0 maxvalue += value[i][0] - value[i][1] maxvalue value[i][0] - value[i][1] value[i][0] value[i] value i 0 value[i][1] value[i] value i 1 System.out.println(maxvalue) System.out.println System.out System System.out maxvalue sc.close() sc.close sc String[] args args public class Main
{

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

		int n = Integer.parseInt(sc.next());
		
		int[][] value = new int[n][2];
		
		for (int i = 0; i < n; i++) {
			value[i][0] = Integer.parseInt(sc.next());
		}
		
		for (int i = 0; i < n; i++) {
			value[i][1] = Integer.parseInt(sc.next());
		}
		
		int maxvalue = 0;
		
		for (int i = 0; i < n; i++) {
			if (value[i][0] - value[i][1] > 0) maxvalue += value[i][0] - value[i][1];
		}

		
		System.out.println(maxvalue);
		
		sc.close();
	}
	
} public class Main
{

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

		int n = Integer.parseInt(sc.next());
		
		int[][] value = new int[n][2];
		
		for (int i = 0; i < n; i++) {
			value[i][0] = Integer.parseInt(sc.next());
		}
		
		for (int i = 0; i < n; i++) {
			value[i][1] = Integer.parseInt(sc.next());
		}
		
		int maxvalue = 0;
		
		for (int i = 0; i < n; i++) {
			if (value[i][0] - value[i][1] > 0) maxvalue += value[i][0] - value[i][1];
		}

		
		System.out.println(maxvalue);
		
		sc.close();
	}
	
} Main
import java.util.Scanner;

public class Main
{

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

		int n = Integer.parseInt(sc.next());
		
		int[][] value = new int[n][2];
		
		for (int i = 0; i < n; i++) {
			value[i][0] = Integer.parseInt(sc.next());
		}
		
		for (int i = 0; i < n; i++) {
			value[i][1] = Integer.parseInt(sc.next());
		}
		
		int maxvalue = 0;
		
		for (int i = 0; i < n; i++) {
			if (value[i][0] - value[i][1] > 0) maxvalue += value[i][0] - value[i][1];
		}

		
		System.out.println(maxvalue);
		
		sc.close();
	}
	
}
