import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int[] v=new int[n];
        int[] c=new int[n];
        for(int i=0; i<n; i++){
            v[i]=sc.nextInt();
        }
        for(int i=0; i<n; i++){
            c[i]=sc.nextInt();
        }

        int profit=0;
        for(int i=0; i<n; i++){
            int temp=v[i]-c[i];
            if(temp>0){
                profit+=temp;
            }
        }
        System.out.println(profit);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int[] v=new int[n];
        int[] c=new int[n];
        for(int i=0; i<n; i++){
            v[i]=sc.nextInt();
        }
        for(int i=0; i<n; i++){
            c[i]=sc.nextInt();
        }

        int profit=0;
        for(int i=0; i<n; i++){
            int temp=v[i]-c[i];
            if(temp>0){
                profit+=temp;
            }
        }
        System.out.println(profit);
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int[] v=new int[n];
        int[] c=new int[n];
        for(int i=0; i<n; i++){
            v[i]=sc.nextInt();
        }
        for(int i=0; i<n; i++){
            c[i]=sc.nextInt();
        }

        int profit=0;
        for(int i=0; i<n; i++){
            int temp=v[i]-c[i];
            if(temp>0){
                profit+=temp;
            }
        }
        System.out.println(profit);
    } main {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int[] v=new int[n];
        int[] c=new int[n];
        for(int i=0; i<n; i++){
            v[i]=sc.nextInt();
        }
        for(int i=0; i<n; i++){
            c[i]=sc.nextInt();
        }

        int profit=0;
        for(int i=0; i<n; i++){
            int temp=v[i]-c[i];
            if(temp>0){
                profit+=temp;
            }
        }
        System.out.println(profit);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] v=new int[n]; v new int[n] n int[] c=new int[n]; c new int[n] n for(int i=0; i<n; i++){
            v[i]=sc.nextInt();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            v[i]=sc.nextInt();
        } {
            v[i]=sc.nextInt();
        } v[i]=sc.nextInt() v[i] v i sc.nextInt() sc.nextInt sc for(int i=0; i<n; i++){
            c[i]=sc.nextInt();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            c[i]=sc.nextInt();
        } {
            c[i]=sc.nextInt();
        } c[i]=sc.nextInt() c[i] c i sc.nextInt() sc.nextInt sc int profit=0; profit 0 for(int i=0; i<n; i++){
            int temp=v[i]-c[i];
            if(temp>0){
                profit+=temp;
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            int temp=v[i]-c[i];
            if(temp>0){
                profit+=temp;
            }
        } {
            int temp=v[i]-c[i];
            if(temp>0){
                profit+=temp;
            }
        } int temp=v[i]-c[i]; temp v[i]-c[i] v[i] v i c[i] c i if(temp>0){
                profit+=temp;
            } temp>0 temp 0 {
                profit+=temp;
            } profit+=temp profit temp System.out.println(profit) System.out.println System.out System System.out profit String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int[] v=new int[n];
        int[] c=new int[n];
        for(int i=0; i<n; i++){
            v[i]=sc.nextInt();
        }
        for(int i=0; i<n; i++){
            c[i]=sc.nextInt();
        }

        int profit=0;
        for(int i=0; i<n; i++){
            int temp=v[i]-c[i];
            if(temp>0){
                profit+=temp;
            }
        }
        System.out.println(profit);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int[] v=new int[n];
        int[] c=new int[n];
        for(int i=0; i<n; i++){
            v[i]=sc.nextInt();
        }
        for(int i=0; i<n; i++){
            c[i]=sc.nextInt();
        }

        int profit=0;
        for(int i=0; i<n; i++){
            int temp=v[i]-c[i];
            if(temp>0){
                profit+=temp;
            }
        }
        System.out.println(profit);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        int n=sc.nextInt();
        int[] v=new int[n];
        int[] c=new int[n];
        for(int i=0; i<n; i++){
            v[i]=sc.nextInt();
        }
        for(int i=0; i<n; i++){
            c[i]=sc.nextInt();
        }

        int profit=0;
        for(int i=0; i<n; i++){
            int temp=v[i]-c[i];
            if(temp>0){
                profit+=temp;
            }
        }
        System.out.println(profit);
    }
}
