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);
    }
}

/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz