/******************************************************************************

                            Online C Compiler.
                Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <stdio.h>
int A[20]={};
int B[20]={};
int C[20]={};
int main()
{
    int n;
    scanf("%d",&n);
    int i;
    int sum = 0;
    for(i=0;i<n;i++){
        scanf("%d",&A[i]);
    }
    for(i=0;i<n;i++){
        scanf("%d",&B[i]);
    }
    for(i=0;i<n;i++){
        if(A[i]>B[i])
            sum +=(A[i]-B[i]);
    }
    printf("%d",sum);
    return 0;
}
