import java.util.Scanner;

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

public class Main{
	public static void main(String[] args) {
		Scanner sc =  new Scanner(System.in);
		int number = sc.nextInt();
		int[] values = new int[number];
		int[] costs = new int[number];
		int sum = 0;
		
		for(int i=0;i<number;i++)
			values[i] = sc.nextInt();
		for(int i=0;i<number;i++) {
			costs[i] = sc.nextInt();
			if(values[i]-costs[i]>0)
				sum += values[i]-costs[i];
		}
		sc.close();
		System.out.println(sum);
	}
}