import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int juwelNum = sc.nextInt();

        int[] juwelValue = new int[juwelNum];
        for(int i = 0; i < juwelNum; i++){
            juwelValue[i] = sc.nextInt();
        }
        int[] juwelCost = new int[juwelNum];
        for(int i = 0; i < juwelNum; i++){
            juwelCost[i] = sc.nextInt();
        }

        int ans = 0;
        for(int i = 0; i < juwelNum; i++){
            if(juwelValue[i] > juwelCost[i]){
                ans += juwelValue[i] - juwelCost[i];
            }
        }

        System.out.println(ans);
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int juwelNum = sc.nextInt();

        int[] juwelValue = new int[juwelNum];
        for(int i = 0; i < juwelNum; i++){
            juwelValue[i] = sc.nextInt();
        }
        int[] juwelCost = new int[juwelNum];
        for(int i = 0; i < juwelNum; i++){
            juwelCost[i] = sc.nextInt();
        }

        int ans = 0;
        for(int i = 0; i < juwelNum; i++){
            if(juwelValue[i] > juwelCost[i]){
                ans += juwelValue[i] - juwelCost[i];
            }
        }

        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int juwelNum = sc.nextInt();

        int[] juwelValue = new int[juwelNum];
        for(int i = 0; i < juwelNum; i++){
            juwelValue[i] = sc.nextInt();
        }
        int[] juwelCost = new int[juwelNum];
        for(int i = 0; i < juwelNum; i++){
            juwelCost[i] = sc.nextInt();
        }

        int ans = 0;
        for(int i = 0; i < juwelNum; i++){
            if(juwelValue[i] > juwelCost[i]){
                ans += juwelValue[i] - juwelCost[i];
            }
        }

        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int juwelNum = sc.nextInt();

        int[] juwelValue = new int[juwelNum];
        for(int i = 0; i < juwelNum; i++){
            juwelValue[i] = sc.nextInt();
        }
        int[] juwelCost = new int[juwelNum];
        for(int i = 0; i < juwelNum; i++){
            juwelCost[i] = sc.nextInt();
        }

        int ans = 0;
        for(int i = 0; i < juwelNum; i++){
            if(juwelValue[i] > juwelCost[i]){
                ans += juwelValue[i] - juwelCost[i];
            }
        }

        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int juwelNum = sc.nextInt(); juwelNum sc.nextInt() sc.nextInt sc int[] juwelValue = new int[juwelNum]; juwelValue new int[juwelNum] juwelNum for(int i = 0; i < juwelNum; i++){
            juwelValue[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < juwelNum i juwelNum i++ i++ i {
            juwelValue[i] = sc.nextInt();
        } {
            juwelValue[i] = sc.nextInt();
        } juwelValue[i] = sc.nextInt() juwelValue[i] juwelValue i sc.nextInt() sc.nextInt sc int[] juwelCost = new int[juwelNum]; juwelCost new int[juwelNum] juwelNum for(int i = 0; i < juwelNum; i++){
            juwelCost[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < juwelNum i juwelNum i++ i++ i {
            juwelCost[i] = sc.nextInt();
        } {
            juwelCost[i] = sc.nextInt();
        } juwelCost[i] = sc.nextInt() juwelCost[i] juwelCost i sc.nextInt() sc.nextInt sc int ans = 0; ans 0 for(int i = 0; i < juwelNum; i++){
            if(juwelValue[i] > juwelCost[i]){
                ans += juwelValue[i] - juwelCost[i];
            }
        } int i = 0; int i = 0; i 0 i < juwelNum i juwelNum i++ i++ i {
            if(juwelValue[i] > juwelCost[i]){
                ans += juwelValue[i] - juwelCost[i];
            }
        } {
            if(juwelValue[i] > juwelCost[i]){
                ans += juwelValue[i] - juwelCost[i];
            }
        } if(juwelValue[i] > juwelCost[i]){
                ans += juwelValue[i] - juwelCost[i];
            } juwelValue[i] > juwelCost[i] juwelValue[i] juwelValue i juwelCost[i] juwelCost i {
                ans += juwelValue[i] - juwelCost[i];
            } ans += juwelValue[i] - juwelCost[i] ans juwelValue[i] - juwelCost[i] juwelValue[i] juwelValue i juwelCost[i] juwelCost i System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int juwelNum = sc.nextInt();

        int[] juwelValue = new int[juwelNum];
        for(int i = 0; i < juwelNum; i++){
            juwelValue[i] = sc.nextInt();
        }
        int[] juwelCost = new int[juwelNum];
        for(int i = 0; i < juwelNum; i++){
            juwelCost[i] = sc.nextInt();
        }

        int ans = 0;
        for(int i = 0; i < juwelNum; i++){
            if(juwelValue[i] > juwelCost[i]){
                ans += juwelValue[i] - juwelCost[i];
            }
        }

        System.out.println(ans);
    }
}