import java.util.*;

class Main
{
	public static void main(String[] args)
	{
		int N,X,Y,Ans=0;
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		for(int i=0;i<N;i++)
		{
			V[i] = sc.nextInt();
		}
		for(int i=0;i<N;i++)
		{
			C[i] = sc.nextInt();
		}
		int comp;
		for(int i=0;i<N;i++)
		{
			comp = V[i] - C[i];
			if(comp>0) Ans+=comp;
		}
		System.out.println(Ans);
	}
} import java.util.*; util.* java class Main
{
	public static void main(String[] args)
	{
		int N,X,Y,Ans=0;
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		for(int i=0;i<N;i++)
		{
			V[i] = sc.nextInt();
		}
		for(int i=0;i<N;i++)
		{
			C[i] = sc.nextInt();
		}
		int comp;
		for(int i=0;i<N;i++)
		{
			comp = V[i] - C[i];
			if(comp>0) Ans+=comp;
		}
		System.out.println(Ans);
	}
} Main public static void main(String[] args)
	{
		int N,X,Y,Ans=0;
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		for(int i=0;i<N;i++)
		{
			V[i] = sc.nextInt();
		}
		for(int i=0;i<N;i++)
		{
			C[i] = sc.nextInt();
		}
		int comp;
		for(int i=0;i<N;i++)
		{
			comp = V[i] - C[i];
			if(comp>0) Ans+=comp;
		}
		System.out.println(Ans);
	} main {
		int N,X,Y,Ans=0;
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		for(int i=0;i<N;i++)
		{
			V[i] = sc.nextInt();
		}
		for(int i=0;i<N;i++)
		{
			C[i] = sc.nextInt();
		}
		int comp;
		for(int i=0;i<N;i++)
		{
			comp = V[i] - C[i];
			if(comp>0) Ans+=comp;
		}
		System.out.println(Ans);
	} int N N X X Y Y Ans=0; Ans 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) N = sc.nextInt() N sc.nextInt() sc.nextInt sc 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] = 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 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 int comp; comp for(int i=0;i<N;i++)
		{
			comp = V[i] - C[i];
			if(comp>0) Ans+=comp;
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			comp = V[i] - C[i];
			if(comp>0) Ans+=comp;
		} {
			comp = V[i] - C[i];
			if(comp>0) Ans+=comp;
		} comp = V[i] - C[i] comp V[i] - C[i] V[i] V i C[i] C i if(comp>0) Ans+=comp; comp>0 comp 0 Ans+=comp Ans comp System.out.println(Ans) System.out.println System.out System System.out Ans String[] args args
import java.util.*;

class Main
{
	public static void main(String[] args)
	{
		int N,X,Y,Ans=0;
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();
		int[] V = new int[N];
		int[] C = new int[N];
		for(int i=0;i<N;i++)
		{
			V[i] = sc.nextInt();
		}
		for(int i=0;i<N;i++)
		{
			C[i] = sc.nextInt();
		}
		int comp;
		for(int i=0;i<N;i++)
		{
			comp = V[i] - C[i];
			if(comp>0) Ans+=comp;
		}
		System.out.println(Ans);
	}
}