import java.util.Scanner;
class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int V[] = new int[n];
        int C[] = new int[n];
        int ans=0;
        for(int i=0;i<n;i++)V[i] = sc.nextInt();
        for(int i=0;i<n;i++){
            C[i] = sc.nextInt();
            if((V[i]-C[i]) > 0){
                ans += (V[i]-C[i]);
            }
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int V[] = new int[n];
        int C[] = new int[n];
        int ans=0;
        for(int i=0;i<n;i++)V[i] = sc.nextInt();
        for(int i=0;i<n;i++){
            C[i] = sc.nextInt();
            if((V[i]-C[i]) > 0){
                ans += (V[i]-C[i]);
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int V[] = new int[n];
        int C[] = new int[n];
        int ans=0;
        for(int i=0;i<n;i++)V[i] = sc.nextInt();
        for(int i=0;i<n;i++){
            C[i] = sc.nextInt();
            if((V[i]-C[i]) > 0){
                ans += (V[i]-C[i]);
            }
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int V[] = new int[n];
        int C[] = new int[n];
        int ans=0;
        for(int i=0;i<n;i++)V[i] = sc.nextInt();
        for(int i=0;i<n;i++){
            C[i] = sc.nextInt();
            if((V[i]-C[i]) > 0){
                ans += (V[i]-C[i]);
            }
        }
        System.out.println(ans);
    } 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 int ans=0; ans 0 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] V i sc.nextInt() sc.nextInt sc for(int i=0;i<n;i++){
            C[i] = sc.nextInt();
            if((V[i]-C[i]) > 0){
                ans += (V[i]-C[i]);
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            C[i] = sc.nextInt();
            if((V[i]-C[i]) > 0){
                ans += (V[i]-C[i]);
            }
        } {
            C[i] = sc.nextInt();
            if((V[i]-C[i]) > 0){
                ans += (V[i]-C[i]);
            }
        } C[i] = sc.nextInt() C[i] C i sc.nextInt() sc.nextInt sc if((V[i]-C[i]) > 0){
                ans += (V[i]-C[i]);
            } (V[i]-C[i]) > 0 (V[i]-C[i]) V[i] V i C[i] C i 0 {
                ans += (V[i]-C[i]);
            } ans += (V[i]-C[i]) ans (V[i]-C[i]) V[i] V i C[i] C i System.out.println(ans) System.out.println System.out System System.out ans String args[] args
import java.util.Scanner;
class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int V[] = new int[n];
        int C[] = new int[n];
        int ans=0;
        for(int i=0;i<n;i++)V[i] = sc.nextInt();
        for(int i=0;i<n;i++){
            C[i] = sc.nextInt();
            if((V[i]-C[i]) > 0){
                ans += (V[i]-C[i]);
            }
        }
        System.out.println(ans);
    }
}