import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int value[] = new int[num];
        int cost[] = new int[num];
        int sumValue = 0;
        int sumCost = 0;

        for (int i = 0; i < num; i++) {
           value[i] = sc.nextInt(); 
        }
        for (int i = 0; i < num; i++) {
           cost[i] = sc.nextInt(); 
        }
        sc.close();
        for (int i = 0; i < num; i++) {
           if (value[i] - cost[i] > 0) {
               sumValue += value[i];
               sumCost += cost[i];
           }
        }
        System.out.println(sumValue - sumCost);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int value[] = new int[num];
        int cost[] = new int[num];
        int sumValue = 0;
        int sumCost = 0;

        for (int i = 0; i < num; i++) {
           value[i] = sc.nextInt(); 
        }
        for (int i = 0; i < num; i++) {
           cost[i] = sc.nextInt(); 
        }
        sc.close();
        for (int i = 0; i < num; i++) {
           if (value[i] - cost[i] > 0) {
               sumValue += value[i];
               sumCost += cost[i];
           }
        }
        System.out.println(sumValue - sumCost);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int value[] = new int[num];
        int cost[] = new int[num];
        int sumValue = 0;
        int sumCost = 0;

        for (int i = 0; i < num; i++) {
           value[i] = sc.nextInt(); 
        }
        for (int i = 0; i < num; i++) {
           cost[i] = sc.nextInt(); 
        }
        sc.close();
        for (int i = 0; i < num; i++) {
           if (value[i] - cost[i] > 0) {
               sumValue += value[i];
               sumCost += cost[i];
           }
        }
        System.out.println(sumValue - sumCost);
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int value[] = new int[num];
        int cost[] = new int[num];
        int sumValue = 0;
        int sumCost = 0;

        for (int i = 0; i < num; i++) {
           value[i] = sc.nextInt(); 
        }
        for (int i = 0; i < num; i++) {
           cost[i] = sc.nextInt(); 
        }
        sc.close();
        for (int i = 0; i < num; i++) {
           if (value[i] - cost[i] > 0) {
               sumValue += value[i];
               sumCost += cost[i];
           }
        }
        System.out.println(sumValue - sumCost);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int value[] = new int[num]; value new int[num] num int cost[] = new int[num]; cost new int[num] num int sumValue = 0; sumValue 0 int sumCost = 0; sumCost 0 for (int i = 0; i < num; i++) {
           value[i] = sc.nextInt(); 
        } int i = 0; int i = 0; i 0 i < num i num 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 < num; i++) {
           cost[i] = sc.nextInt(); 
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
           cost[i] = sc.nextInt(); 
        } {
           cost[i] = sc.nextInt(); 
        } cost[i] = sc.nextInt() cost[i] cost i sc.nextInt() sc.nextInt sc sc.close() sc.close sc for (int i = 0; i < num; i++) {
           if (value[i] - cost[i] > 0) {
               sumValue += value[i];
               sumCost += cost[i];
           }
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
           if (value[i] - cost[i] > 0) {
               sumValue += value[i];
               sumCost += cost[i];
           }
        } {
           if (value[i] - cost[i] > 0) {
               sumValue += value[i];
               sumCost += cost[i];
           }
        } if (value[i] - cost[i] > 0) {
               sumValue += value[i];
               sumCost += cost[i];
           } value[i] - cost[i] > 0 value[i] - cost[i] value[i] value i cost[i] cost i 0 {
               sumValue += value[i];
               sumCost += cost[i];
           } sumValue += value[i] sumValue value[i] value i sumCost += cost[i] sumCost cost[i] cost i System.out.println(sumValue - sumCost) System.out.println System.out System System.out sumValue - sumCost sumValue sumCost String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int value[] = new int[num];
        int cost[] = new int[num];
        int sumValue = 0;
        int sumCost = 0;

        for (int i = 0; i < num; i++) {
           value[i] = sc.nextInt(); 
        }
        for (int i = 0; i < num; i++) {
           cost[i] = sc.nextInt(); 
        }
        sc.close();
        for (int i = 0; i < num; i++) {
           if (value[i] - cost[i] > 0) {
               sumValue += value[i];
               sumCost += cost[i];
           }
        }
        System.out.println(sumValue - sumCost);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int value[] = new int[num];
        int cost[] = new int[num];
        int sumValue = 0;
        int sumCost = 0;

        for (int i = 0; i < num; i++) {
           value[i] = sc.nextInt(); 
        }
        for (int i = 0; i < num; i++) {
           cost[i] = sc.nextInt(); 
        }
        sc.close();
        for (int i = 0; i < num; i++) {
           if (value[i] - cost[i] > 0) {
               sumValue += value[i];
               sumCost += cost[i];
           }
        }
        System.out.println(sumValue - sumCost);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int value[] = new int[num];
        int cost[] = new int[num];
        int sumValue = 0;
        int sumCost = 0;

        for (int i = 0; i < num; i++) {
           value[i] = sc.nextInt(); 
        }
        for (int i = 0; i < num; i++) {
           cost[i] = sc.nextInt(); 
        }
        sc.close();
        for (int i = 0; i < num; i++) {
           if (value[i] - cost[i] > 0) {
               sumValue += value[i];
               sumCost += cost[i];
           }
        }
        System.out.println(sumValue - sumCost);
    }
}