import java.util.*;
public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a[]=new int[n];
		int b[]=new int[n];
		for(int i=0;i<n;i++)
			a[i]=sc.nextInt();
			for(int i=0;i<n;i++)
			b[i]=sc.nextInt();
		int c=0,s=0;
		for(int i=0;i<n;i++){
			if(a[i]>b[i]){
				c=c+a[i];
				s=s+b[i];
			}	
		}
		System.out.println(c-s);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a[]=new int[n];
		int b[]=new int[n];
		for(int i=0;i<n;i++)
			a[i]=sc.nextInt();
			for(int i=0;i<n;i++)
			b[i]=sc.nextInt();
		int c=0,s=0;
		for(int i=0;i<n;i++){
			if(a[i]>b[i]){
				c=c+a[i];
				s=s+b[i];
			}	
		}
		System.out.println(c-s);
	}
} Main public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a[]=new int[n];
		int b[]=new int[n];
		for(int i=0;i<n;i++)
			a[i]=sc.nextInt();
			for(int i=0;i<n;i++)
			b[i]=sc.nextInt();
		int c=0,s=0;
		for(int i=0;i<n;i++){
			if(a[i]>b[i]){
				c=c+a[i];
				s=s+b[i];
			}	
		}
		System.out.println(c-s);
	} main {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a[]=new int[n];
		int b[]=new int[n];
		for(int i=0;i<n;i++)
			a[i]=sc.nextInt();
			for(int i=0;i<n;i++)
			b[i]=sc.nextInt();
		int c=0,s=0;
		for(int i=0;i<n;i++){
			if(a[i]>b[i]){
				c=c+a[i];
				s=s+b[i];
			}	
		}
		System.out.println(c-s);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int a[]=new int[n]; a new int[n] n int b[]=new int[n]; b new int[n] n for(int i=0;i<n;i++)
			a[i]=sc.nextInt(); int i=0; int i=0; i 0 i<n i n i++ i++ i a[i]=sc.nextInt(); a[i]=sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc for(int i=0;i<n;i++)
			b[i]=sc.nextInt(); int i=0; int i=0; i 0 i<n i n i++ i++ i b[i]=sc.nextInt(); b[i]=sc.nextInt() b[i] b i sc.nextInt() sc.nextInt sc int c=0 c 0 s=0; s 0 for(int i=0;i<n;i++){
			if(a[i]>b[i]){
				c=c+a[i];
				s=s+b[i];
			}	
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			if(a[i]>b[i]){
				c=c+a[i];
				s=s+b[i];
			}	
		} {
			if(a[i]>b[i]){
				c=c+a[i];
				s=s+b[i];
			}	
		} if(a[i]>b[i]){
				c=c+a[i];
				s=s+b[i];
			} a[i]>b[i] a[i] a i b[i] b i {
				c=c+a[i];
				s=s+b[i];
			} c=c+a[i] c c+a[i] c a[i] a i s=s+b[i] s s+b[i] s b[i] b i System.out.println(c-s) System.out.println System.out System System.out c-s c s String arg[] arg public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a[]=new int[n];
		int b[]=new int[n];
		for(int i=0;i<n;i++)
			a[i]=sc.nextInt();
			for(int i=0;i<n;i++)
			b[i]=sc.nextInt();
		int c=0,s=0;
		for(int i=0;i<n;i++){
			if(a[i]>b[i]){
				c=c+a[i];
				s=s+b[i];
			}	
		}
		System.out.println(c-s);
	}
} public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a[]=new int[n];
		int b[]=new int[n];
		for(int i=0;i<n;i++)
			a[i]=sc.nextInt();
			for(int i=0;i<n;i++)
			b[i]=sc.nextInt();
		int c=0,s=0;
		for(int i=0;i<n;i++){
			if(a[i]>b[i]){
				c=c+a[i];
				s=s+b[i];
			}	
		}
		System.out.println(c-s);
	}
} Main
import java.util.*;
public class Main{
	public static void main(String arg[]){
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int a[]=new int[n];
		int b[]=new int[n];
		for(int i=0;i<n;i++)
			a[i]=sc.nextInt();
			for(int i=0;i<n;i++)
			b[i]=sc.nextInt();
		int c=0,s=0;
		for(int i=0;i<n;i++){
			if(a[i]>b[i]){
				c=c+a[i];
				s=s+b[i];
			}	
		}
		System.out.println(c-s);
	}
}