import java.util.*;
import java.io.*;
import java.lang.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner (System.in);
		int n = sc.nextInt();
		int[] v = new int[n];
		int[] p = new int[n];
		
		for (int i = 0; i<n; i++) {
			v[i] = sc.nextInt();
		}
		for (int i =0; i<n; i++) {
			p[i] = sc.nextInt();
		}

		int val = 0; 

		for (int i = 0;  i<n; i++) {
			if (v[i] > p[i]) {
				val += v[i] - p[i];
			}
		}
		System.out.println(val);
	}
} import java.util.*; util.* java import java.io.*; io.* java import java.lang.*; lang.* java public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner (System.in);
		int n = sc.nextInt();
		int[] v = new int[n];
		int[] p = new int[n];
		
		for (int i = 0; i<n; i++) {
			v[i] = sc.nextInt();
		}
		for (int i =0; i<n; i++) {
			p[i] = sc.nextInt();
		}

		int val = 0; 

		for (int i = 0;  i<n; i++) {
			if (v[i] > p[i]) {
				val += v[i] - p[i];
			}
		}
		System.out.println(val);
	}
} Main public static void main (String[] args) {
		Scanner sc = new Scanner (System.in);
		int n = sc.nextInt();
		int[] v = new int[n];
		int[] p = new int[n];
		
		for (int i = 0; i<n; i++) {
			v[i] = sc.nextInt();
		}
		for (int i =0; i<n; i++) {
			p[i] = sc.nextInt();
		}

		int val = 0; 

		for (int i = 0;  i<n; i++) {
			if (v[i] > p[i]) {
				val += v[i] - p[i];
			}
		}
		System.out.println(val);
	} main {
		Scanner sc = new Scanner (System.in);
		int n = sc.nextInt();
		int[] v = new int[n];
		int[] p = new int[n];
		
		for (int i = 0; i<n; i++) {
			v[i] = sc.nextInt();
		}
		for (int i =0; i<n; i++) {
			p[i] = sc.nextInt();
		}

		int val = 0; 

		for (int i = 0;  i<n; i++) {
			if (v[i] > p[i]) {
				val += v[i] - p[i];
			}
		}
		System.out.println(val);
	} Scanner sc = new Scanner (System.in); sc new Scanner (System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] v = new int[n]; v new int[n] n int[] p = new int[n]; p new int[n] n for (int i = 0; i<n; i++) {
			v[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
			v[i] = sc.nextInt();
		} {
			v[i] = sc.nextInt();
		} v[i] = sc.nextInt() v[i] v i sc.nextInt() sc.nextInt sc for (int i =0; i<n; i++) {
			p[i] = sc.nextInt();
		} int i =0; int i =0; i 0 i<n i n i++ i++ i {
			p[i] = sc.nextInt();
		} {
			p[i] = sc.nextInt();
		} p[i] = sc.nextInt() p[i] p i sc.nextInt() sc.nextInt sc int val = 0; val 0 for (int i = 0;  i<n; i++) {
			if (v[i] > p[i]) {
				val += v[i] - p[i];
			}
		} int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
			if (v[i] > p[i]) {
				val += v[i] - p[i];
			}
		} {
			if (v[i] > p[i]) {
				val += v[i] - p[i];
			}
		} if (v[i] > p[i]) {
				val += v[i] - p[i];
			} v[i] > p[i] v[i] v i p[i] p i {
				val += v[i] - p[i];
			} val += v[i] - p[i] val v[i] - p[i] v[i] v i p[i] p i System.out.println(val) System.out.println System.out System System.out val String[] args args public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner (System.in);
		int n = sc.nextInt();
		int[] v = new int[n];
		int[] p = new int[n];
		
		for (int i = 0; i<n; i++) {
			v[i] = sc.nextInt();
		}
		for (int i =0; i<n; i++) {
			p[i] = sc.nextInt();
		}

		int val = 0; 

		for (int i = 0;  i<n; i++) {
			if (v[i] > p[i]) {
				val += v[i] - p[i];
			}
		}
		System.out.println(val);
	}
} public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner (System.in);
		int n = sc.nextInt();
		int[] v = new int[n];
		int[] p = new int[n];
		
		for (int i = 0; i<n; i++) {
			v[i] = sc.nextInt();
		}
		for (int i =0; i<n; i++) {
			p[i] = sc.nextInt();
		}

		int val = 0; 

		for (int i = 0;  i<n; i++) {
			if (v[i] > p[i]) {
				val += v[i] - p[i];
			}
		}
		System.out.println(val);
	}
} Main
import java.util.*;
import java.io.*;
import java.lang.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner (System.in);
		int n = sc.nextInt();
		int[] v = new int[n];
		int[] p = new int[n];
		
		for (int i = 0; i<n; i++) {
			v[i] = sc.nextInt();
		}
		for (int i =0; i<n; i++) {
			p[i] = sc.nextInt();
		}

		int val = 0; 

		for (int i = 0;  i<n; i++) {
			if (v[i] > p[i]) {
				val += v[i] - p[i];
			}
		}
		System.out.println(val);
	}
}
