import java.util.*;

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

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int v[] = new int[n];
        int c[] = new int[n];
        int ans = 0;
        for(int i = 0;i<n;i++){
            v[i] = Integer.parseInt(sc.next());
        }
        for(int i = 0;i<n;i++){
            c[i] = Integer.parseInt(sc.next());
        }
        for(int i = 0;i<n;i++){
            int diff = v[i] - c[i];
            if(diff > 0){
                ans += diff;
            }
        }
        System.out.println(ans);
    }
}