import java.util.*;

public class Main {

    public static void main(String[] args) {
        
        Scanner sn = new Scanner(System.in);
        int N = sn.nextInt();
        int[] valueArray = new int[N];
        int[] costArray = new int[N];
        int maxValue = 0;
        
        for(int i = 0; i< N; i++) {
            valueArray[i] = sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            costArray[i] =sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            
            int diff = valueArray[i] - costArray[i];
            if(diff > 0){
                maxValue = maxValue + diff;
            }
        }
        System.out.println(maxValue);
        
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        
        Scanner sn = new Scanner(System.in);
        int N = sn.nextInt();
        int[] valueArray = new int[N];
        int[] costArray = new int[N];
        int maxValue = 0;
        
        for(int i = 0; i< N; i++) {
            valueArray[i] = sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            costArray[i] =sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            
            int diff = valueArray[i] - costArray[i];
            if(diff > 0){
                maxValue = maxValue + diff;
            }
        }
        System.out.println(maxValue);
        
    }
} Main public static void main(String[] args) {
        
        Scanner sn = new Scanner(System.in);
        int N = sn.nextInt();
        int[] valueArray = new int[N];
        int[] costArray = new int[N];
        int maxValue = 0;
        
        for(int i = 0; i< N; i++) {
            valueArray[i] = sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            costArray[i] =sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            
            int diff = valueArray[i] - costArray[i];
            if(diff > 0){
                maxValue = maxValue + diff;
            }
        }
        System.out.println(maxValue);
        
    } main {
        
        Scanner sn = new Scanner(System.in);
        int N = sn.nextInt();
        int[] valueArray = new int[N];
        int[] costArray = new int[N];
        int maxValue = 0;
        
        for(int i = 0; i< N; i++) {
            valueArray[i] = sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            costArray[i] =sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            
            int diff = valueArray[i] - costArray[i];
            if(diff > 0){
                maxValue = maxValue + diff;
            }
        }
        System.out.println(maxValue);
        
    } Scanner sn = new Scanner(System.in); sn new Scanner(System.in) int N = sn.nextInt(); N sn.nextInt() sn.nextInt sn int[] valueArray = new int[N]; valueArray new int[N] N int[] costArray = new int[N]; costArray new int[N] N int maxValue = 0; maxValue 0 for(int i = 0; i< N; i++) {
            valueArray[i] = sn.nextInt();
        } int i = 0; int i = 0; i 0 i< N i N i++ i++ i {
            valueArray[i] = sn.nextInt();
        } {
            valueArray[i] = sn.nextInt();
        } valueArray[i] = sn.nextInt() valueArray[i] valueArray i sn.nextInt() sn.nextInt sn for(int i=0; i < N; i++){
            costArray[i] =sn.nextInt();
        } int i=0; int i=0; i 0 i < N i N i++ i++ i {
            costArray[i] =sn.nextInt();
        } {
            costArray[i] =sn.nextInt();
        } costArray[i] =sn.nextInt() costArray[i] costArray i sn.nextInt() sn.nextInt sn for(int i=0; i < N; i++){
            
            int diff = valueArray[i] - costArray[i];
            if(diff > 0){
                maxValue = maxValue + diff;
            }
        } int i=0; int i=0; i 0 i < N i N i++ i++ i {
            
            int diff = valueArray[i] - costArray[i];
            if(diff > 0){
                maxValue = maxValue + diff;
            }
        } {
            
            int diff = valueArray[i] - costArray[i];
            if(diff > 0){
                maxValue = maxValue + diff;
            }
        } int diff = valueArray[i] - costArray[i]; diff valueArray[i] - costArray[i] valueArray[i] valueArray i costArray[i] costArray i if(diff > 0){
                maxValue = maxValue + diff;
            } diff > 0 diff 0 {
                maxValue = maxValue + diff;
            } maxValue = maxValue + diff maxValue maxValue + diff maxValue diff System.out.println(maxValue) System.out.println System.out System System.out maxValue String[] args args public class Main {

    public static void main(String[] args) {
        
        Scanner sn = new Scanner(System.in);
        int N = sn.nextInt();
        int[] valueArray = new int[N];
        int[] costArray = new int[N];
        int maxValue = 0;
        
        for(int i = 0; i< N; i++) {
            valueArray[i] = sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            costArray[i] =sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            
            int diff = valueArray[i] - costArray[i];
            if(diff > 0){
                maxValue = maxValue + diff;
            }
        }
        System.out.println(maxValue);
        
    }
} public class Main {

    public static void main(String[] args) {
        
        Scanner sn = new Scanner(System.in);
        int N = sn.nextInt();
        int[] valueArray = new int[N];
        int[] costArray = new int[N];
        int maxValue = 0;
        
        for(int i = 0; i< N; i++) {
            valueArray[i] = sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            costArray[i] =sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            
            int diff = valueArray[i] - costArray[i];
            if(diff > 0){
                maxValue = maxValue + diff;
            }
        }
        System.out.println(maxValue);
        
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        
        Scanner sn = new Scanner(System.in);
        int N = sn.nextInt();
        int[] valueArray = new int[N];
        int[] costArray = new int[N];
        int maxValue = 0;
        
        for(int i = 0; i< N; i++) {
            valueArray[i] = sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            costArray[i] =sn.nextInt();
        }
        
        for(int i=0; i < N; i++){
            
            int diff = valueArray[i] - costArray[i];
            if(diff > 0){
                maxValue = maxValue + diff;
            }
        }
        System.out.println(maxValue);
        
    }
}