import java.io.*;
import java.util.StringTokenizer;

public class Main
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        int N = Integer.parseInt(br.readLine());
        StringTokenizer st = new StringTokenizer(br.readLine());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i=0;i<N;++i)
        {
            v[i] = Integer.parseInt(st.nextToken());
        }
        st = new StringTokenizer(br.readLine());
        for(int i=0;i<N;++i)
        {
            c[i] = Integer.parseInt(st.nextToken());
        }
        int ans = 0;
        for(int i=0;i<N;++i)
        {
            ans+=v[i]>c[i]?v[i]-c[i]:0;
        }
        bw.write(ans+"");
        bw.close();

    }

} import java.io.*; io.* java import java.util.StringTokenizer; StringTokenizer java.util public class Main
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        int N = Integer.parseInt(br.readLine());
        StringTokenizer st = new StringTokenizer(br.readLine());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i=0;i<N;++i)
        {
            v[i] = Integer.parseInt(st.nextToken());
        }
        st = new StringTokenizer(br.readLine());
        for(int i=0;i<N;++i)
        {
            c[i] = Integer.parseInt(st.nextToken());
        }
        int ans = 0;
        for(int i=0;i<N;++i)
        {
            ans+=v[i]>c[i]?v[i]-c[i]:0;
        }
        bw.write(ans+"");
        bw.close();

    }

} Main public static void main(String[] args) throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        int N = Integer.parseInt(br.readLine());
        StringTokenizer st = new StringTokenizer(br.readLine());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i=0;i<N;++i)
        {
            v[i] = Integer.parseInt(st.nextToken());
        }
        st = new StringTokenizer(br.readLine());
        for(int i=0;i<N;++i)
        {
            c[i] = Integer.parseInt(st.nextToken());
        }
        int ans = 0;
        for(int i=0;i<N;++i)
        {
            ans+=v[i]>c[i]?v[i]-c[i]:0;
        }
        bw.write(ans+"");
        bw.close();

    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        int N = Integer.parseInt(br.readLine());
        StringTokenizer st = new StringTokenizer(br.readLine());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i=0;i<N;++i)
        {
            v[i] = Integer.parseInt(st.nextToken());
        }
        st = new StringTokenizer(br.readLine());
        for(int i=0;i<N;++i)
        {
            c[i] = Integer.parseInt(st.nextToken());
        }
        int ans = 0;
        for(int i=0;i<N;++i)
        {
            ans+=v[i]>c[i]?v[i]-c[i]:0;
        }
        bw.write(ans+"");
        bw.close();

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); bw new BufferedWriter(new OutputStreamWriter(System.out)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br StringTokenizer st = new StringTokenizer(br.readLine()); st new StringTokenizer(br.readLine()) 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] = Integer.parseInt(st.nextToken());
        } int i=0; int i=0; i 0 i<N i N ++i ++i i {
            v[i] = Integer.parseInt(st.nextToken());
        } {
            v[i] = Integer.parseInt(st.nextToken());
        } v[i] = Integer.parseInt(st.nextToken()) v[i] v i Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) for(int i=0;i<N;++i)
        {
            c[i] = Integer.parseInt(st.nextToken());
        } int i=0; int i=0; i 0 i<N i N ++i ++i i {
            c[i] = Integer.parseInt(st.nextToken());
        } {
            c[i] = Integer.parseInt(st.nextToken());
        } c[i] = Integer.parseInt(st.nextToken()) c[i] c i Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int ans = 0; ans 0 for(int i=0;i<N;++i)
        {
            ans+=v[i]>c[i]?v[i]-c[i]:0;
        } int i=0; int i=0; i 0 i<N i N ++i ++i i {
            ans+=v[i]>c[i]?v[i]-c[i]:0;
        } {
            ans+=v[i]>c[i]?v[i]-c[i]:0;
        } ans+=v[i]>c[i]?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 v[i]-c[i] v[i] v i c[i] c i 0 bw.write(ans+"") bw.write bw ans+"" ans "" bw.close() bw.close bw String[] args args public class Main
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        int N = Integer.parseInt(br.readLine());
        StringTokenizer st = new StringTokenizer(br.readLine());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i=0;i<N;++i)
        {
            v[i] = Integer.parseInt(st.nextToken());
        }
        st = new StringTokenizer(br.readLine());
        for(int i=0;i<N;++i)
        {
            c[i] = Integer.parseInt(st.nextToken());
        }
        int ans = 0;
        for(int i=0;i<N;++i)
        {
            ans+=v[i]>c[i]?v[i]-c[i]:0;
        }
        bw.write(ans+"");
        bw.close();

    }

} public class Main
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        int N = Integer.parseInt(br.readLine());
        StringTokenizer st = new StringTokenizer(br.readLine());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i=0;i<N;++i)
        {
            v[i] = Integer.parseInt(st.nextToken());
        }
        st = new StringTokenizer(br.readLine());
        for(int i=0;i<N;++i)
        {
            c[i] = Integer.parseInt(st.nextToken());
        }
        int ans = 0;
        for(int i=0;i<N;++i)
        {
            ans+=v[i]>c[i]?v[i]-c[i]:0;
        }
        bw.write(ans+"");
        bw.close();

    }

} Main
import java.io.*;
import java.util.StringTokenizer;

public class Main
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        int N = Integer.parseInt(br.readLine());
        StringTokenizer st = new StringTokenizer(br.readLine());
        int[] v = new int[N];
        int[] c = new int[N];
        for(int i=0;i<N;++i)
        {
            v[i] = Integer.parseInt(st.nextToken());
        }
        st = new StringTokenizer(br.readLine());
        for(int i=0;i<N;++i)
        {
            c[i] = Integer.parseInt(st.nextToken());
        }
        int ans = 0;
        for(int i=0;i<N;++i)
        {
            ans+=v[i]>c[i]?v[i]-c[i]:0;
        }
        bw.write(ans+"");
        bw.close();

    }

}
