import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int[] values = new int[N];
		int[] costs = new int[N];
		
		for(int i = 0; i < N; i++) values[i] = sc.nextInt();
		for(int i = 0; i < N; i++) costs[i] = sc.nextInt();
		
		int ans = 0;
		for(int i = 0; i < N; i++){
			int profit = values[i] - costs[i];
			if(profit > 0) ans += profit;
		}
		
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int[] values = new int[N];
		int[] costs = new int[N];
		
		for(int i = 0; i < N; i++) values[i] = sc.nextInt();
		for(int i = 0; i < N; i++) costs[i] = sc.nextInt();
		
		int ans = 0;
		for(int i = 0; i < N; i++){
			int profit = values[i] - costs[i];
			if(profit > 0) ans += profit;
		}
		
		System.out.println(ans);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int[] values = new int[N];
		int[] costs = new int[N];
		
		for(int i = 0; i < N; i++) values[i] = sc.nextInt();
		for(int i = 0; i < N; i++) costs[i] = sc.nextInt();
		
		int ans = 0;
		for(int i = 0; i < N; i++){
			int profit = values[i] - costs[i];
			if(profit > 0) ans += profit;
		}
		
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int[] values = new int[N];
		int[] costs = new int[N];
		
		for(int i = 0; i < N; i++) values[i] = sc.nextInt();
		for(int i = 0; i < N; i++) costs[i] = sc.nextInt();
		
		int ans = 0;
		for(int i = 0; i < N; i++){
			int profit = values[i] - costs[i];
			if(profit > 0) ans += profit;
		}
		
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] values = new int[N]; values new int[N] N int[] costs = new int[N]; costs new int[N] N for(int i = 0; i < N; i++) values[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < N i N i++ i++ i values[i] = sc.nextInt(); values[i] = sc.nextInt() values[i] values i sc.nextInt() sc.nextInt sc for(int i = 0; i < N; i++) costs[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < N i N i++ i++ i costs[i] = sc.nextInt(); costs[i] = sc.nextInt() costs[i] costs i sc.nextInt() sc.nextInt sc int ans = 0; ans 0 for(int i = 0; i < N; i++){
			int profit = values[i] - costs[i];
			if(profit > 0) ans += profit;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int profit = values[i] - costs[i];
			if(profit > 0) ans += profit;
		} {
			int profit = values[i] - costs[i];
			if(profit > 0) ans += profit;
		} int profit = values[i] - costs[i]; profit values[i] - costs[i] values[i] values i costs[i] costs i if(profit > 0) ans += profit; profit > 0 profit 0 ans += profit ans profit System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int[] values = new int[N];
		int[] costs = new int[N];
		
		for(int i = 0; i < N; i++) values[i] = sc.nextInt();
		for(int i = 0; i < N; i++) costs[i] = sc.nextInt();
		
		int ans = 0;
		for(int i = 0; i < N; i++){
			int profit = values[i] - costs[i];
			if(profit > 0) ans += profit;
		}
		
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int[] values = new int[N];
		int[] costs = new int[N];
		
		for(int i = 0; i < N; i++) values[i] = sc.nextInt();
		for(int i = 0; i < N; i++) costs[i] = sc.nextInt();
		
		int ans = 0;
		for(int i = 0; i < N; i++){
			int profit = values[i] - costs[i];
			if(profit > 0) ans += profit;
		}
		
		System.out.println(ans);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		int[] values = new int[N];
		int[] costs = new int[N];
		
		for(int i = 0; i < N; i++) values[i] = sc.nextInt();
		for(int i = 0; i < N; i++) costs[i] = sc.nextInt();
		
		int ans = 0;
		for(int i = 0; i < N; i++){
			int profit = values[i] - costs[i];
			if(profit > 0) ans += profit;
		}
		
		System.out.println(ans);
	}
}
