import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int [] value = new int[n];
		int [] cost = new int[n];
		int [] profit = new int[n];
		int total_profit = 0;

		for(int i = 0; i < n; i++) {
			value[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			cost[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			profit[i] = value[i] - cost[i];
			if(profit[i] >= 0) {
				total_profit += profit[i];
			}
		}

		System.out.println(total_profit);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int [] value = new int[n];
		int [] cost = new int[n];
		int [] profit = new int[n];
		int total_profit = 0;

		for(int i = 0; i < n; i++) {
			value[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			cost[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			profit[i] = value[i] - cost[i];
			if(profit[i] >= 0) {
				total_profit += profit[i];
			}
		}

		System.out.println(total_profit);
	}
} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int [] value = new int[n];
		int [] cost = new int[n];
		int [] profit = new int[n];
		int total_profit = 0;

		for(int i = 0; i < n; i++) {
			value[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			cost[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			profit[i] = value[i] - cost[i];
			if(profit[i] >= 0) {
				total_profit += profit[i];
			}
		}

		System.out.println(total_profit);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int [] value = new int[n];
		int [] cost = new int[n];
		int [] profit = new int[n];
		int total_profit = 0;

		for(int i = 0; i < n; i++) {
			value[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			cost[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			profit[i] = value[i] - cost[i];
			if(profit[i] >= 0) {
				total_profit += profit[i];
			}
		}

		System.out.println(total_profit);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int [] value = new int[n]; value new int[n] n int [] cost = new int[n]; cost new int[n] n int [] profit = new int[n]; profit new int[n] n int total_profit = 0; total_profit 0 for(int i = 0; i < n; i++) {
			value[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			value[i] = sc.nextInt();
		} {
			value[i] = sc.nextInt();
		} value[i] = sc.nextInt() value[i] value i sc.nextInt() sc.nextInt sc for(int i = 0; i < n; i++) {
			cost[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			cost[i] = sc.nextInt();
		} {
			cost[i] = sc.nextInt();
		} cost[i] = sc.nextInt() cost[i] cost i sc.nextInt() sc.nextInt sc for(int i = 0; i < n; i++) {
			profit[i] = value[i] - cost[i];
			if(profit[i] >= 0) {
				total_profit += profit[i];
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			profit[i] = value[i] - cost[i];
			if(profit[i] >= 0) {
				total_profit += profit[i];
			}
		} {
			profit[i] = value[i] - cost[i];
			if(profit[i] >= 0) {
				total_profit += profit[i];
			}
		} profit[i] = value[i] - cost[i] profit[i] profit i value[i] - cost[i] value[i] value i cost[i] cost i if(profit[i] >= 0) {
				total_profit += profit[i];
			} profit[i] >= 0 profit[i] profit i 0 {
				total_profit += profit[i];
			} total_profit += profit[i] total_profit profit[i] profit i System.out.println(total_profit) System.out.println System.out System System.out total_profit String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int [] value = new int[n];
		int [] cost = new int[n];
		int [] profit = new int[n];
		int total_profit = 0;

		for(int i = 0; i < n; i++) {
			value[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			cost[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			profit[i] = value[i] - cost[i];
			if(profit[i] >= 0) {
				total_profit += profit[i];
			}
		}

		System.out.println(total_profit);
	}
} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int [] value = new int[n];
		int [] cost = new int[n];
		int [] profit = new int[n];
		int total_profit = 0;

		for(int i = 0; i < n; i++) {
			value[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			cost[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			profit[i] = value[i] - cost[i];
			if(profit[i] >= 0) {
				total_profit += profit[i];
			}
		}

		System.out.println(total_profit);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int [] value = new int[n];
		int [] cost = new int[n];
		int [] profit = new int[n];
		int total_profit = 0;

		for(int i = 0; i < n; i++) {
			value[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			cost[i] = sc.nextInt();
		}

		for(int i = 0; i < n; i++) {
			profit[i] = value[i] - cost[i];
			if(profit[i] >= 0) {
				total_profit += profit[i];
			}
		}

		System.out.println(total_profit);
	}
}