import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list_gold=new ArrayList<Integer>();
		//Integer[] Republican = new Integer[m];
		int n = sc.nextInt();
		List<Integer> list_kati=new ArrayList<Integer>();
		List<Integer> list_cost=new ArrayList<Integer>();
		int count=0;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_kati.add(a);
		}

		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_cost.add(a);
		}

		for(int i=0;n>i;i++) {
			if(list_kati.get(i)>list_cost.get(i))
				count=count+list_kati.get(i)-list_cost.get(i);
		}

		System.out.println(count);

	}
}
 import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list_gold=new ArrayList<Integer>();
		//Integer[] Republican = new Integer[m];
		int n = sc.nextInt();
		List<Integer> list_kati=new ArrayList<Integer>();
		List<Integer> list_cost=new ArrayList<Integer>();
		int count=0;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_kati.add(a);
		}

		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_cost.add(a);
		}

		for(int i=0;n>i;i++) {
			if(list_kati.get(i)>list_cost.get(i))
				count=count+list_kati.get(i)-list_cost.get(i);
		}

		System.out.println(count);

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list_gold=new ArrayList<Integer>();
		//Integer[] Republican = new Integer[m];
		int n = sc.nextInt();
		List<Integer> list_kati=new ArrayList<Integer>();
		List<Integer> list_cost=new ArrayList<Integer>();
		int count=0;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_kati.add(a);
		}

		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_cost.add(a);
		}

		for(int i=0;n>i;i++) {
			if(list_kati.get(i)>list_cost.get(i))
				count=count+list_kati.get(i)-list_cost.get(i);
		}

		System.out.println(count);

	} main {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list_gold=new ArrayList<Integer>();
		//Integer[] Republican = new Integer[m];
		int n = sc.nextInt();
		List<Integer> list_kati=new ArrayList<Integer>();
		List<Integer> list_cost=new ArrayList<Integer>();
		int count=0;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_kati.add(a);
		}

		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_cost.add(a);
		}

		for(int i=0;n>i;i++) {
			if(list_kati.get(i)>list_cost.get(i))
				count=count+list_kati.get(i)-list_cost.get(i);
		}

		System.out.println(count);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> list_kati=new ArrayList<Integer>(); list_kati new ArrayList<Integer>() List<Integer> list_cost=new ArrayList<Integer>(); list_cost new ArrayList<Integer>() int count=0; count 0 for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_kati.add(a);
		} int i=0; int i=0; i 0 n>i n i i++ i++ i {
			int a = sc.nextInt();
			list_kati.add(a);
		} {
			int a = sc.nextInt();
			list_kati.add(a);
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc list_kati.add(a) list_kati.add list_kati a for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_cost.add(a);
		} int i=0; int i=0; i 0 n>i n i i++ i++ i {
			int a = sc.nextInt();
			list_cost.add(a);
		} {
			int a = sc.nextInt();
			list_cost.add(a);
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc list_cost.add(a) list_cost.add list_cost a for(int i=0;n>i;i++) {
			if(list_kati.get(i)>list_cost.get(i))
				count=count+list_kati.get(i)-list_cost.get(i);
		} int i=0; int i=0; i 0 n>i n i i++ i++ i {
			if(list_kati.get(i)>list_cost.get(i))
				count=count+list_kati.get(i)-list_cost.get(i);
		} {
			if(list_kati.get(i)>list_cost.get(i))
				count=count+list_kati.get(i)-list_cost.get(i);
		} if(list_kati.get(i)>list_cost.get(i))
				count=count+list_kati.get(i)-list_cost.get(i); list_kati.get(i)>list_cost.get(i) list_kati.get(i) list_kati.get list_kati i list_cost.get(i) list_cost.get list_cost i count=count+list_kati.get(i)-list_cost.get(i) count count+list_kati.get(i)-list_cost.get(i) count+list_kati.get(i) count list_kati.get(i) list_kati.get list_kati i list_cost.get(i) list_cost.get list_cost i System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list_gold=new ArrayList<Integer>();
		//Integer[] Republican = new Integer[m];
		int n = sc.nextInt();
		List<Integer> list_kati=new ArrayList<Integer>();
		List<Integer> list_cost=new ArrayList<Integer>();
		int count=0;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_kati.add(a);
		}

		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_cost.add(a);
		}

		for(int i=0;n>i;i++) {
			if(list_kati.get(i)>list_cost.get(i))
				count=count+list_kati.get(i)-list_cost.get(i);
		}

		System.out.println(count);

	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list_gold=new ArrayList<Integer>();
		//Integer[] Republican = new Integer[m];
		int n = sc.nextInt();
		List<Integer> list_kati=new ArrayList<Integer>();
		List<Integer> list_cost=new ArrayList<Integer>();
		int count=0;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_kati.add(a);
		}

		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_cost.add(a);
		}

		for(int i=0;n>i;i++) {
			if(list_kati.get(i)>list_cost.get(i))
				count=count+list_kati.get(i)-list_cost.get(i);
		}

		System.out.println(count);

	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		//List<String> list= new ArrayList<String>(Arrays.asList(s.split("")));
		//List<Integer> list_gold=new ArrayList<Integer>();
		//Integer[] Republican = new Integer[m];
		int n = sc.nextInt();
		List<Integer> list_kati=new ArrayList<Integer>();
		List<Integer> list_cost=new ArrayList<Integer>();
		int count=0;
		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_kati.add(a);
		}

		for(int i=0;n>i;i++) {
			int a = sc.nextInt();
			list_cost.add(a);
		}

		for(int i=0;n>i;i++) {
			if(list_kati.get(i)>list_cost.get(i))
				count=count+list_kati.get(i)-list_cost.get(i);
		}

		System.out.println(count);

	}
}

