import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	
		// 1段目の宝石数
		int n = sc.nextInt();
      
      	int[] calcList = new int[n];
     
        // 2段目のvの数値
      	for (int i=0; i < n; i++) {
          calcList[i] = sc.nextInt();
        }
      
        // 3段目のvの数値
		for (int i=0; i < n; i++) {
           calcList[i] = calcList[i] - sc.nextInt();
        }
      
        int max = 0;
		for (int calcNum : calcList) {
          if (calcNum > 0) {
            max += calcNum;
          }
        }
      
        System.out.println(max);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	
		// 1段目の宝石数
		int n = sc.nextInt();
      
      	int[] calcList = new int[n];
     
        // 2段目のvの数値
      	for (int i=0; i < n; i++) {
          calcList[i] = sc.nextInt();
        }
      
        // 3段目のvの数値
		for (int i=0; i < n; i++) {
           calcList[i] = calcList[i] - sc.nextInt();
        }
      
        int max = 0;
		for (int calcNum : calcList) {
          if (calcNum > 0) {
            max += calcNum;
          }
        }
      
        System.out.println(max);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	
		// 1段目の宝石数
		int n = sc.nextInt();
      
      	int[] calcList = new int[n];
     
        // 2段目のvの数値
      	for (int i=0; i < n; i++) {
          calcList[i] = sc.nextInt();
        }
      
        // 3段目のvの数値
		for (int i=0; i < n; i++) {
           calcList[i] = calcList[i] - sc.nextInt();
        }
      
        int max = 0;
		for (int calcNum : calcList) {
          if (calcNum > 0) {
            max += calcNum;
          }
        }
      
        System.out.println(max);
	} main {
		Scanner sc = new Scanner(System.in);
      	
		// 1段目の宝石数
		int n = sc.nextInt();
      
      	int[] calcList = new int[n];
     
        // 2段目のvの数値
      	for (int i=0; i < n; i++) {
          calcList[i] = sc.nextInt();
        }
      
        // 3段目のvの数値
		for (int i=0; i < n; i++) {
           calcList[i] = calcList[i] - sc.nextInt();
        }
      
        int max = 0;
		for (int calcNum : calcList) {
          if (calcNum > 0) {
            max += calcNum;
          }
        }
      
        System.out.println(max);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] calcList = new int[n]; calcList new int[n] n for (int i=0; i < n; i++) {
          calcList[i] = sc.nextInt();
        } int i=0; int i=0; i 0 i < n i n i++ i++ i {
          calcList[i] = sc.nextInt();
        } {
          calcList[i] = sc.nextInt();
        } calcList[i] = sc.nextInt() calcList[i] calcList i sc.nextInt() sc.nextInt sc for (int i=0; i < n; i++) {
           calcList[i] = calcList[i] - sc.nextInt();
        } int i=0; int i=0; i 0 i < n i n i++ i++ i {
           calcList[i] = calcList[i] - sc.nextInt();
        } {
           calcList[i] = calcList[i] - sc.nextInt();
        } calcList[i] = calcList[i] - sc.nextInt() calcList[i] calcList i calcList[i] - sc.nextInt() calcList[i] calcList i sc.nextInt() sc.nextInt sc int max = 0; max 0 for (int calcNum : calcList) {
          if (calcNum > 0) {
            max += calcNum;
          }
        } int calcNum calcList {
          if (calcNum > 0) {
            max += calcNum;
          }
        } {
          if (calcNum > 0) {
            max += calcNum;
          }
        } if (calcNum > 0) {
            max += calcNum;
          } calcNum > 0 calcNum 0 {
            max += calcNum;
          } max += calcNum max calcNum System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	
		// 1段目の宝石数
		int n = sc.nextInt();
      
      	int[] calcList = new int[n];
     
        // 2段目のvの数値
      	for (int i=0; i < n; i++) {
          calcList[i] = sc.nextInt();
        }
      
        // 3段目のvの数値
		for (int i=0; i < n; i++) {
           calcList[i] = calcList[i] - sc.nextInt();
        }
      
        int max = 0;
		for (int calcNum : calcList) {
          if (calcNum > 0) {
            max += calcNum;
          }
        }
      
        System.out.println(max);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	
		// 1段目の宝石数
		int n = sc.nextInt();
      
      	int[] calcList = new int[n];
     
        // 2段目のvの数値
      	for (int i=0; i < n; i++) {
          calcList[i] = sc.nextInt();
        }
      
        // 3段目のvの数値
		for (int i=0; i < n; i++) {
           calcList[i] = calcList[i] - sc.nextInt();
        }
      
        int max = 0;
		for (int calcNum : calcList) {
          if (calcNum > 0) {
            max += calcNum;
          }
        }
      
        System.out.println(max);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	
		// 1段目の宝石数
		int n = sc.nextInt();
      
      	int[] calcList = new int[n];
     
        // 2段目のvの数値
      	for (int i=0; i < n; i++) {
          calcList[i] = sc.nextInt();
        }
      
        // 3段目のvの数値
		for (int i=0; i < n; i++) {
           calcList[i] = calcList[i] - sc.nextInt();
        }
      
        int max = 0;
		for (int calcNum : calcList) {
          if (calcNum > 0) {
            max += calcNum;
          }
        }
      
        System.out.println(max);
	}
}