import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {

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

		int n = in.nextInt();
		
		int[] value = new int[n];
		for(int i = 0; i < n; i++) {
			value[i] = in.nextInt();
		}
		
		int[] cost = new int[n];
		for(int j = 0; j < n; j++) {
			cost[j] = in.nextInt();
		}

		int result = solve(n, value, cost);
		System.out.println(result);

		in.close();

	}
	
	public static int solve(int n, int[] value, int[] cost) {
		int result = 0;
		
		for(int i = 0; i < n; i++) {
			if((value[i] - cost[i]) > 0) {
				result += value[i] - cost[i];
			}
		}
		
		return result;
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {

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

		int n = in.nextInt();
		
		int[] value = new int[n];
		for(int i = 0; i < n; i++) {
			value[i] = in.nextInt();
		}
		
		int[] cost = new int[n];
		for(int j = 0; j < n; j++) {
			cost[j] = in.nextInt();
		}

		int result = solve(n, value, cost);
		System.out.println(result);

		in.close();

	}
	
	public static int solve(int n, int[] value, int[] cost) {
		int result = 0;
		
		for(int i = 0; i < n; i++) {
			if((value[i] - cost[i]) > 0) {
				result += value[i] - cost[i];
			}
		}
		
		return result;
	}

} Main public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

		int n = in.nextInt();
		
		int[] value = new int[n];
		for(int i = 0; i < n; i++) {
			value[i] = in.nextInt();
		}
		
		int[] cost = new int[n];
		for(int j = 0; j < n; j++) {
			cost[j] = in.nextInt();
		}

		int result = solve(n, value, cost);
		System.out.println(result);

		in.close();

	} main {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

		int n = in.nextInt();
		
		int[] value = new int[n];
		for(int i = 0; i < n; i++) {
			value[i] = in.nextInt();
		}
		
		int[] cost = new int[n];
		for(int j = 0; j < n; j++) {
			cost[j] = in.nextInt();
		}

		int result = solve(n, value, cost);
		System.out.println(result);

		in.close();

	} Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) int n = in.nextInt(); n in.nextInt() in.nextInt in int[] value = new int[n]; value new int[n] n for(int i = 0; i < n; i++) {
			value[i] = in.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			value[i] = in.nextInt();
		} {
			value[i] = in.nextInt();
		} value[i] = in.nextInt() value[i] value i in.nextInt() in.nextInt in int[] cost = new int[n]; cost new int[n] n for(int j = 0; j < n; j++) {
			cost[j] = in.nextInt();
		} int j = 0; int j = 0; j 0 j < n j n j++ j++ j {
			cost[j] = in.nextInt();
		} {
			cost[j] = in.nextInt();
		} cost[j] = in.nextInt() cost[j] cost j in.nextInt() in.nextInt in int result = solve(n, value, cost); result solve(n, value, cost) solve n value cost System.out.println(result) System.out.println System.out System System.out result in.close() in.close in String[] args args public static int solve(int n, int[] value, int[] cost) {
		int result = 0;
		
		for(int i = 0; i < n; i++) {
			if((value[i] - cost[i]) > 0) {
				result += value[i] - cost[i];
			}
		}
		
		return result;
	} solve {
		int result = 0;
		
		for(int i = 0; i < n; i++) {
			if((value[i] - cost[i]) > 0) {
				result += value[i] - cost[i];
			}
		}
		
		return result;
	} int result = 0; result 0 for(int i = 0; i < n; i++) {
			if((value[i] - cost[i]) > 0) {
				result += value[i] - cost[i];
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			if((value[i] - cost[i]) > 0) {
				result += value[i] - cost[i];
			}
		} {
			if((value[i] - cost[i]) > 0) {
				result += value[i] - cost[i];
			}
		} if((value[i] - cost[i]) > 0) {
				result += value[i] - cost[i];
			} (value[i] - cost[i]) > 0 (value[i] - cost[i]) value[i] value i cost[i] cost i 0 {
				result += value[i] - cost[i];
			} result += value[i] - cost[i] result value[i] - cost[i] value[i] value i cost[i] cost i return result; result int n n int[] value value int[] cost cost public class Main {

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

		int n = in.nextInt();
		
		int[] value = new int[n];
		for(int i = 0; i < n; i++) {
			value[i] = in.nextInt();
		}
		
		int[] cost = new int[n];
		for(int j = 0; j < n; j++) {
			cost[j] = in.nextInt();
		}

		int result = solve(n, value, cost);
		System.out.println(result);

		in.close();

	}
	
	public static int solve(int n, int[] value, int[] cost) {
		int result = 0;
		
		for(int i = 0; i < n; i++) {
			if((value[i] - cost[i]) > 0) {
				result += value[i] - cost[i];
			}
		}
		
		return result;
	}

} public class Main {

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

		int n = in.nextInt();
		
		int[] value = new int[n];
		for(int i = 0; i < n; i++) {
			value[i] = in.nextInt();
		}
		
		int[] cost = new int[n];
		for(int j = 0; j < n; j++) {
			cost[j] = in.nextInt();
		}

		int result = solve(n, value, cost);
		System.out.println(result);

		in.close();

	}
	
	public static int solve(int n, int[] value, int[] cost) {
		int result = 0;
		
		for(int i = 0; i < n; i++) {
			if((value[i] - cost[i]) > 0) {
				result += value[i] - cost[i];
			}
		}
		
		return result;
	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {

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

		int n = in.nextInt();
		
		int[] value = new int[n];
		for(int i = 0; i < n; i++) {
			value[i] = in.nextInt();
		}
		
		int[] cost = new int[n];
		for(int j = 0; j < n; j++) {
			cost[j] = in.nextInt();
		}

		int result = solve(n, value, cost);
		System.out.println(result);

		in.close();

	}
	
	public static int solve(int n, int[] value, int[] cost) {
		int result = 0;
		
		for(int i = 0; i < n; i++) {
			if((value[i] - cost[i]) > 0) {
				result += value[i] - cost[i];
			}
		}
		
		return result;
	}

}