import java.util.*;

public class Main {
	static int n, v, c;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		n = Integer.parseInt(sc.nextLine());
		
		String[] vs = sc.nextLine().split(" ");
		String[] cs = sc.nextLine().split(" ");
		
		v = 0;
		c = 0;
		//System.out.println(vs);
		for(int i = 0; i < n; i++) {
			if(Integer.parseInt(vs[i]) - Integer.parseInt(cs[i]) > 0) {
				v+=Integer.parseInt(vs[i]);
				c+=Integer.parseInt(cs[i]);
			}
		}
		//System.out.println(vs);
		System.out.println(v-c);
	}
} import java.util.*; util.* java public class Main {
	static int n, v, c;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		n = Integer.parseInt(sc.nextLine());
		
		String[] vs = sc.nextLine().split(" ");
		String[] cs = sc.nextLine().split(" ");
		
		v = 0;
		c = 0;
		//System.out.println(vs);
		for(int i = 0; i < n; i++) {
			if(Integer.parseInt(vs[i]) - Integer.parseInt(cs[i]) > 0) {
				v+=Integer.parseInt(vs[i]);
				c+=Integer.parseInt(cs[i]);
			}
		}
		//System.out.println(vs);
		System.out.println(v-c);
	}
} Main static int n n v v c; c public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		n = Integer.parseInt(sc.nextLine());
		
		String[] vs = sc.nextLine().split(" ");
		String[] cs = sc.nextLine().split(" ");
		
		v = 0;
		c = 0;
		//System.out.println(vs);
		for(int i = 0; i < n; i++) {
			if(Integer.parseInt(vs[i]) - Integer.parseInt(cs[i]) > 0) {
				v+=Integer.parseInt(vs[i]);
				c+=Integer.parseInt(cs[i]);
			}
		}
		//System.out.println(vs);
		System.out.println(v-c);
	} main {
		Scanner sc = new Scanner(System.in);
		n = Integer.parseInt(sc.nextLine());
		
		String[] vs = sc.nextLine().split(" ");
		String[] cs = sc.nextLine().split(" ");
		
		v = 0;
		c = 0;
		//System.out.println(vs);
		for(int i = 0; i < n; i++) {
			if(Integer.parseInt(vs[i]) - Integer.parseInt(cs[i]) > 0) {
				v+=Integer.parseInt(vs[i]);
				c+=Integer.parseInt(cs[i]);
			}
		}
		//System.out.println(vs);
		System.out.println(v-c);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = Integer.parseInt(sc.nextLine()) n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String[] vs = sc.nextLine().split(" "); vs sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " String[] cs = sc.nextLine().split(" "); cs sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " v = 0 v 0 c = 0 c 0 for(int i = 0; i < n; i++) {
			if(Integer.parseInt(vs[i]) - Integer.parseInt(cs[i]) > 0) {
				v+=Integer.parseInt(vs[i]);
				c+=Integer.parseInt(cs[i]);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			if(Integer.parseInt(vs[i]) - Integer.parseInt(cs[i]) > 0) {
				v+=Integer.parseInt(vs[i]);
				c+=Integer.parseInt(cs[i]);
			}
		} {
			if(Integer.parseInt(vs[i]) - Integer.parseInt(cs[i]) > 0) {
				v+=Integer.parseInt(vs[i]);
				c+=Integer.parseInt(cs[i]);
			}
		} if(Integer.parseInt(vs[i]) - Integer.parseInt(cs[i]) > 0) {
				v+=Integer.parseInt(vs[i]);
				c+=Integer.parseInt(cs[i]);
			} Integer.parseInt(vs[i]) - Integer.parseInt(cs[i]) > 0 Integer.parseInt(vs[i]) - Integer.parseInt(cs[i]) Integer.parseInt(vs[i]) Integer.parseInt Integer vs[i] vs i Integer.parseInt(cs[i]) Integer.parseInt Integer cs[i] cs i 0 {
				v+=Integer.parseInt(vs[i]);
				c+=Integer.parseInt(cs[i]);
			} v+=Integer.parseInt(vs[i]) v Integer.parseInt(vs[i]) Integer.parseInt Integer vs[i] vs i c+=Integer.parseInt(cs[i]) c Integer.parseInt(cs[i]) Integer.parseInt Integer cs[i] cs i System.out.println(v-c) System.out.println System.out System System.out v-c v c String[] args args public class Main {
	static int n, v, c;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		n = Integer.parseInt(sc.nextLine());
		
		String[] vs = sc.nextLine().split(" ");
		String[] cs = sc.nextLine().split(" ");
		
		v = 0;
		c = 0;
		//System.out.println(vs);
		for(int i = 0; i < n; i++) {
			if(Integer.parseInt(vs[i]) - Integer.parseInt(cs[i]) > 0) {
				v+=Integer.parseInt(vs[i]);
				c+=Integer.parseInt(cs[i]);
			}
		}
		//System.out.println(vs);
		System.out.println(v-c);
	}
} public class Main {
	static int n, v, c;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		n = Integer.parseInt(sc.nextLine());
		
		String[] vs = sc.nextLine().split(" ");
		String[] cs = sc.nextLine().split(" ");
		
		v = 0;
		c = 0;
		//System.out.println(vs);
		for(int i = 0; i < n; i++) {
			if(Integer.parseInt(vs[i]) - Integer.parseInt(cs[i]) > 0) {
				v+=Integer.parseInt(vs[i]);
				c+=Integer.parseInt(cs[i]);
			}
		}
		//System.out.println(vs);
		System.out.println(v-c);
	}
} Main
import java.util.*;

public class Main {
	static int n, v, c;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		n = Integer.parseInt(sc.nextLine());
		
		String[] vs = sc.nextLine().split(" ");
		String[] cs = sc.nextLine().split(" ");
		
		v = 0;
		c = 0;
		//System.out.println(vs);
		for(int i = 0; i < n; i++) {
			if(Integer.parseInt(vs[i]) - Integer.parseInt(cs[i]) > 0) {
				v+=Integer.parseInt(vs[i]);
				c+=Integer.parseInt(cs[i]);
			}
		}
		//System.out.println(vs);
		System.out.println(v-c);
	}
}
