import java.io.*;
import java.util.ArrayList;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        ArrayList<Integer> V = new ArrayList<>();
        str = br.readLine();
        for (String s:str.split(" ")){
            V.add(Integer.parseInt(s));
        }
        ArrayList<Integer> C = new ArrayList<>();
        str = br.readLine();
        for (String s:str.split(" ")){
            C.add(Integer.parseInt(s));
        }
        int ans = 0;
        for (int i=0;i<N;i++){
            if (V.get(i)-C.get(i)>0){
                ans += V.get(i)-C.get(i);
            }
        }
        System.out.println(ans);
    }
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        ArrayList<Integer> V = new ArrayList<>();
        str = br.readLine();
        for (String s:str.split(" ")){
            V.add(Integer.parseInt(s));
        }
        ArrayList<Integer> C = new ArrayList<>();
        str = br.readLine();
        for (String s:str.split(" ")){
            C.add(Integer.parseInt(s));
        }
        int ans = 0;
        for (int i=0;i<N;i++){
            if (V.get(i)-C.get(i)>0){
                ans += V.get(i)-C.get(i);
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        ArrayList<Integer> V = new ArrayList<>();
        str = br.readLine();
        for (String s:str.split(" ")){
            V.add(Integer.parseInt(s));
        }
        ArrayList<Integer> C = new ArrayList<>();
        str = br.readLine();
        for (String s:str.split(" ")){
            C.add(Integer.parseInt(s));
        }
        int ans = 0;
        for (int i=0;i<N;i++){
            if (V.get(i)-C.get(i)>0){
                ans += V.get(i)-C.get(i);
            }
        }
        System.out.println(ans);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        ArrayList<Integer> V = new ArrayList<>();
        str = br.readLine();
        for (String s:str.split(" ")){
            V.add(Integer.parseInt(s));
        }
        ArrayList<Integer> C = new ArrayList<>();
        str = br.readLine();
        for (String s:str.split(" ")){
            C.add(Integer.parseInt(s));
        }
        int ans = 0;
        for (int i=0;i<N;i++){
            if (V.get(i)-C.get(i)>0){
                ans += V.get(i)-C.get(i);
            }
        }
        System.out.println(ans);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int N = Integer.parseInt(str); N Integer.parseInt(str) Integer.parseInt Integer str ArrayList<Integer> V = new ArrayList<>(); V new ArrayList<>() str = br.readLine() str br.readLine() br.readLine br for (String s:str.split(" ")){
            V.add(Integer.parseInt(s));
        } String s str.split(" ") str.split str " " {
            V.add(Integer.parseInt(s));
        } {
            V.add(Integer.parseInt(s));
        } V.add(Integer.parseInt(s)) V.add V Integer.parseInt(s) Integer.parseInt Integer s ArrayList<Integer> C = new ArrayList<>(); C new ArrayList<>() str = br.readLine() str br.readLine() br.readLine br for (String s:str.split(" ")){
            C.add(Integer.parseInt(s));
        } String s str.split(" ") str.split str " " {
            C.add(Integer.parseInt(s));
        } {
            C.add(Integer.parseInt(s));
        } C.add(Integer.parseInt(s)) C.add C Integer.parseInt(s) Integer.parseInt Integer s int ans = 0; ans 0 for (int i=0;i<N;i++){
            if (V.get(i)-C.get(i)>0){
                ans += V.get(i)-C.get(i);
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            if (V.get(i)-C.get(i)>0){
                ans += V.get(i)-C.get(i);
            }
        } {
            if (V.get(i)-C.get(i)>0){
                ans += V.get(i)-C.get(i);
            }
        } if (V.get(i)-C.get(i)>0){
                ans += V.get(i)-C.get(i);
            } V.get(i)-C.get(i)>0 V.get(i)-C.get(i) V.get(i) V.get V i C.get(i) C.get C i 0 {
                ans += V.get(i)-C.get(i);
            } ans += V.get(i)-C.get(i) ans V.get(i)-C.get(i) V.get(i) V.get V i C.get(i) C.get C i System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.io.*;
import java.util.ArrayList;

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int N = Integer.parseInt(str);
        ArrayList<Integer> V = new ArrayList<>();
        str = br.readLine();
        for (String s:str.split(" ")){
            V.add(Integer.parseInt(s));
        }
        ArrayList<Integer> C = new ArrayList<>();
        str = br.readLine();
        for (String s:str.split(" ")){
            C.add(Integer.parseInt(s));
        }
        int ans = 0;
        for (int i=0;i<N;i++){
            if (V.get(i)-C.get(i)>0){
                ans += V.get(i)-C.get(i);
            }
        }
        System.out.println(ans);
    }
}