import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] Values = new int[N];
		int[] Costs = new int[N];
		int ans=0;

		for(int i=0;i<N;i++) {
			Values[i]=sc.nextInt();
		}
		for(int i=0;i<N;i++) {
			Costs[i]=sc.nextInt();
		}

		for(int i=0;i<N;i++) {
			if((Values[i]-Costs[i])>0) {
				ans+=Values[i]-Costs[i];
			}
		}
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] Values = new int[N];
		int[] Costs = new int[N];
		int ans=0;

		for(int i=0;i<N;i++) {
			Values[i]=sc.nextInt();
		}
		for(int i=0;i<N;i++) {
			Costs[i]=sc.nextInt();
		}

		for(int i=0;i<N;i++) {
			if((Values[i]-Costs[i])>0) {
				ans+=Values[i]-Costs[i];
			}
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] Values = new int[N];
		int[] Costs = new int[N];
		int ans=0;

		for(int i=0;i<N;i++) {
			Values[i]=sc.nextInt();
		}
		for(int i=0;i<N;i++) {
			Costs[i]=sc.nextInt();
		}

		for(int i=0;i<N;i++) {
			if((Values[i]-Costs[i])>0) {
				ans+=Values[i]-Costs[i];
			}
		}
		System.out.println(ans);
	} main {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] Values = new int[N];
		int[] Costs = new int[N];
		int ans=0;

		for(int i=0;i<N;i++) {
			Values[i]=sc.nextInt();
		}
		for(int i=0;i<N;i++) {
			Costs[i]=sc.nextInt();
		}

		for(int i=0;i<N;i++) {
			if((Values[i]-Costs[i])>0) {
				ans+=Values[i]-Costs[i];
			}
		}
		System.out.println(ans);
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] Values = new int[N]; Values new int[N] N int[] Costs = new int[N]; Costs new int[N] N int ans=0; ans 0 for(int i=0;i<N;i++) {
			Values[i]=sc.nextInt();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			Values[i]=sc.nextInt();
		} {
			Values[i]=sc.nextInt();
		} Values[i]=sc.nextInt() Values[i] Values i sc.nextInt() sc.nextInt sc for(int i=0;i<N;i++) {
			Costs[i]=sc.nextInt();
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			Costs[i]=sc.nextInt();
		} {
			Costs[i]=sc.nextInt();
		} Costs[i]=sc.nextInt() Costs[i] Costs i sc.nextInt() sc.nextInt sc for(int i=0;i<N;i++) {
			if((Values[i]-Costs[i])>0) {
				ans+=Values[i]-Costs[i];
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			if((Values[i]-Costs[i])>0) {
				ans+=Values[i]-Costs[i];
			}
		} {
			if((Values[i]-Costs[i])>0) {
				ans+=Values[i]-Costs[i];
			}
		} if((Values[i]-Costs[i])>0) {
				ans+=Values[i]-Costs[i];
			} (Values[i]-Costs[i])>0 (Values[i]-Costs[i]) Values[i] Values i Costs[i] Costs i 0 {
				ans+=Values[i]-Costs[i];
			} ans+=Values[i]-Costs[i] ans Values[i]-Costs[i] Values[i] Values i Costs[i] Costs i System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] Values = new int[N];
		int[] Costs = new int[N];
		int ans=0;

		for(int i=0;i<N;i++) {
			Values[i]=sc.nextInt();
		}
		for(int i=0;i<N;i++) {
			Costs[i]=sc.nextInt();
		}

		for(int i=0;i<N;i++) {
			if((Values[i]-Costs[i])>0) {
				ans+=Values[i]-Costs[i];
			}
		}
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] Values = new int[N];
		int[] Costs = new int[N];
		int ans=0;

		for(int i=0;i<N;i++) {
			Values[i]=sc.nextInt();
		}
		for(int i=0;i<N;i++) {
			Costs[i]=sc.nextInt();
		}

		for(int i=0;i<N;i++) {
			if((Values[i]-Costs[i])>0) {
				ans+=Values[i]-Costs[i];
			}
		}
		System.out.println(ans);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int N=sc.nextInt();
		int[] Values = new int[N];
		int[] Costs = new int[N];
		int ans=0;

		for(int i=0;i<N;i++) {
			Values[i]=sc.nextInt();
		}
		for(int i=0;i<N;i++) {
			Costs[i]=sc.nextInt();
		}

		for(int i=0;i<N;i++) {
			if((Values[i]-Costs[i])>0) {
				ans+=Values[i]-Costs[i];
			}
		}
		System.out.println(ans);
	}
}