import java.util.*;

public class Main {

    public static void main(String[] args) {
        //変数
        int count = 0;
        boolean sw = false;
        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        int answer=0;

        List<Integer> list1 = new ArrayList<>();
        List<String> list2 = new ArrayList<>();
        //int array1[] = new int[];
        //int array2[] = new int[];

        //入力
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        int V[]=new int[N];
        for(int i=0;i<N;i++)
        {
            V[i]=sc.nextInt();
        }
        int array1[]=new int[N];
        int C[]=new int[N];
        for(int i=0;i<N;i++)
        {
            C[i]=sc.nextInt();
        }

        //処理

        for(int i=0;i<N;i++)
        {
            array1[i]=V[i]-C[i];
        }

        for(int i=0;i<N;i++)
        {
            if(array1[i]>0)
            {
                int tmp=array1[i];
                answer+=tmp;
            }
        }

        //Collections.sort(a);
        //System.out.println(Arrays.toString(list1.toArray()));
        //System.out.println(Arrays.toString(array1));
		//System.out.println(Arrays.deepToString(a));
        System.out.println(answer);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        //変数
        int count = 0;
        boolean sw = false;
        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        int answer=0;

        List<Integer> list1 = new ArrayList<>();
        List<String> list2 = new ArrayList<>();
        //int array1[] = new int[];
        //int array2[] = new int[];

        //入力
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        int V[]=new int[N];
        for(int i=0;i<N;i++)
        {
            V[i]=sc.nextInt();
        }
        int array1[]=new int[N];
        int C[]=new int[N];
        for(int i=0;i<N;i++)
        {
            C[i]=sc.nextInt();
        }

        //処理

        for(int i=0;i<N;i++)
        {
            array1[i]=V[i]-C[i];
        }

        for(int i=0;i<N;i++)
        {
            if(array1[i]>0)
            {
                int tmp=array1[i];
                answer+=tmp;
            }
        }

        //Collections.sort(a);
        //System.out.println(Arrays.toString(list1.toArray()));
        //System.out.println(Arrays.toString(array1));
		//System.out.println(Arrays.deepToString(a));
        System.out.println(answer);
    }
} Main public static void main(String[] args) {
        //変数
        int count = 0;
        boolean sw = false;
        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        int answer=0;

        List<Integer> list1 = new ArrayList<>();
        List<String> list2 = new ArrayList<>();
        //int array1[] = new int[];
        //int array2[] = new int[];

        //入力
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        int V[]=new int[N];
        for(int i=0;i<N;i++)
        {
            V[i]=sc.nextInt();
        }
        int array1[]=new int[N];
        int C[]=new int[N];
        for(int i=0;i<N;i++)
        {
            C[i]=sc.nextInt();
        }

        //処理

        for(int i=0;i<N;i++)
        {
            array1[i]=V[i]-C[i];
        }

        for(int i=0;i<N;i++)
        {
            if(array1[i]>0)
            {
                int tmp=array1[i];
                answer+=tmp;
            }
        }

        //Collections.sort(a);
        //System.out.println(Arrays.toString(list1.toArray()));
        //System.out.println(Arrays.toString(array1));
		//System.out.println(Arrays.deepToString(a));
        System.out.println(answer);
    } main {
        //変数
        int count = 0;
        boolean sw = false;
        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        int answer=0;

        List<Integer> list1 = new ArrayList<>();
        List<String> list2 = new ArrayList<>();
        //int array1[] = new int[];
        //int array2[] = new int[];

        //入力
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        int V[]=new int[N];
        for(int i=0;i<N;i++)
        {
            V[i]=sc.nextInt();
        }
        int array1[]=new int[N];
        int C[]=new int[N];
        for(int i=0;i<N;i++)
        {
            C[i]=sc.nextInt();
        }

        //処理

        for(int i=0;i<N;i++)
        {
            array1[i]=V[i]-C[i];
        }

        for(int i=0;i<N;i++)
        {
            if(array1[i]>0)
            {
                int tmp=array1[i];
                answer+=tmp;
            }
        }

        //Collections.sort(a);
        //System.out.println(Arrays.toString(list1.toArray()));
        //System.out.println(Arrays.toString(array1));
		//System.out.println(Arrays.deepToString(a));
        System.out.println(answer);
    } int count = 0; count 0 boolean sw = false; sw false int max = Integer.MIN_VALUE; max Integer.MIN_VALUE Integer Integer.MIN_VALUE int min = Integer.MAX_VALUE; min Integer.MAX_VALUE Integer Integer.MAX_VALUE int answer=0; answer 0 List<Integer> list1 = new ArrayList<>(); list1 new ArrayList<>() List<String> list2 = new ArrayList<>(); list2 new ArrayList<>() 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 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 int array1[]=new int[N]; array1 new int[N] N int C[]=new int[N]; C new int[N] N 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 for(int i=0;i<N;i++)
        {
            array1[i]=V[i]-C[i];
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            array1[i]=V[i]-C[i];
        } {
            array1[i]=V[i]-C[i];
        } array1[i]=V[i]-C[i] array1[i] array1 i V[i]-C[i] V[i] V i C[i] C i for(int i=0;i<N;i++)
        {
            if(array1[i]>0)
            {
                int tmp=array1[i];
                answer+=tmp;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            if(array1[i]>0)
            {
                int tmp=array1[i];
                answer+=tmp;
            }
        } {
            if(array1[i]>0)
            {
                int tmp=array1[i];
                answer+=tmp;
            }
        } if(array1[i]>0)
            {
                int tmp=array1[i];
                answer+=tmp;
            } array1[i]>0 array1[i] array1 i 0 {
                int tmp=array1[i];
                answer+=tmp;
            } int tmp=array1[i]; tmp array1[i] array1 i answer+=tmp answer tmp System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

    public static void main(String[] args) {
        //変数
        int count = 0;
        boolean sw = false;
        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        int answer=0;

        List<Integer> list1 = new ArrayList<>();
        List<String> list2 = new ArrayList<>();
        //int array1[] = new int[];
        //int array2[] = new int[];

        //入力
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        int V[]=new int[N];
        for(int i=0;i<N;i++)
        {
            V[i]=sc.nextInt();
        }
        int array1[]=new int[N];
        int C[]=new int[N];
        for(int i=0;i<N;i++)
        {
            C[i]=sc.nextInt();
        }

        //処理

        for(int i=0;i<N;i++)
        {
            array1[i]=V[i]-C[i];
        }

        for(int i=0;i<N;i++)
        {
            if(array1[i]>0)
            {
                int tmp=array1[i];
                answer+=tmp;
            }
        }

        //Collections.sort(a);
        //System.out.println(Arrays.toString(list1.toArray()));
        //System.out.println(Arrays.toString(array1));
		//System.out.println(Arrays.deepToString(a));
        System.out.println(answer);
    }
} public class Main {

    public static void main(String[] args) {
        //変数
        int count = 0;
        boolean sw = false;
        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        int answer=0;

        List<Integer> list1 = new ArrayList<>();
        List<String> list2 = new ArrayList<>();
        //int array1[] = new int[];
        //int array2[] = new int[];

        //入力
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        int V[]=new int[N];
        for(int i=0;i<N;i++)
        {
            V[i]=sc.nextInt();
        }
        int array1[]=new int[N];
        int C[]=new int[N];
        for(int i=0;i<N;i++)
        {
            C[i]=sc.nextInt();
        }

        //処理

        for(int i=0;i<N;i++)
        {
            array1[i]=V[i]-C[i];
        }

        for(int i=0;i<N;i++)
        {
            if(array1[i]>0)
            {
                int tmp=array1[i];
                answer+=tmp;
            }
        }

        //Collections.sort(a);
        //System.out.println(Arrays.toString(list1.toArray()));
        //System.out.println(Arrays.toString(array1));
		//System.out.println(Arrays.deepToString(a));
        System.out.println(answer);
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        //変数
        int count = 0;
        boolean sw = false;
        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;

        int answer=0;

        List<Integer> list1 = new ArrayList<>();
        List<String> list2 = new ArrayList<>();
        //int array1[] = new int[];
        //int array2[] = new int[];

        //入力
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();

        int V[]=new int[N];
        for(int i=0;i<N;i++)
        {
            V[i]=sc.nextInt();
        }
        int array1[]=new int[N];
        int C[]=new int[N];
        for(int i=0;i<N;i++)
        {
            C[i]=sc.nextInt();
        }

        //処理

        for(int i=0;i<N;i++)
        {
            array1[i]=V[i]-C[i];
        }

        for(int i=0;i<N;i++)
        {
            if(array1[i]>0)
            {
                int tmp=array1[i];
                answer+=tmp;
            }
        }

        //Collections.sort(a);
        //System.out.println(Arrays.toString(list1.toArray()));
        //System.out.println(Arrays.toString(array1));
		//System.out.println(Arrays.deepToString(a));
        System.out.println(answer);
    }
}
