import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		List<Integer> valueList = new ArrayList(); 
		List<Integer> costList = new ArrayList(); 
		
		for(int i = 0; i < n; i++) {
			int value = sc.nextInt();
			valueList.add(value);
		}
		for(int i = 0; i < n; i++) {
			int cost = sc.nextInt();
			costList.add(cost);
		}
		
		int sum = 0;
		for(int i = 0; i < n; i++) {
			int value = valueList.get(i);
			int cost = costList.get(i);
			if(value > cost) {
				sum+= value - cost;
			}
		}
		
		
		System.out.println(sum);

		
		
	}	

}
 import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util 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();
		List<Integer> valueList = new ArrayList(); 
		List<Integer> costList = new ArrayList(); 
		
		for(int i = 0; i < n; i++) {
			int value = sc.nextInt();
			valueList.add(value);
		}
		for(int i = 0; i < n; i++) {
			int cost = sc.nextInt();
			costList.add(cost);
		}
		
		int sum = 0;
		for(int i = 0; i < n; i++) {
			int value = valueList.get(i);
			int cost = costList.get(i);
			if(value > cost) {
				sum+= value - cost;
			}
		}
		
		
		System.out.println(sum);

		
		
	}	

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		List<Integer> valueList = new ArrayList(); 
		List<Integer> costList = new ArrayList(); 
		
		for(int i = 0; i < n; i++) {
			int value = sc.nextInt();
			valueList.add(value);
		}
		for(int i = 0; i < n; i++) {
			int cost = sc.nextInt();
			costList.add(cost);
		}
		
		int sum = 0;
		for(int i = 0; i < n; i++) {
			int value = valueList.get(i);
			int cost = costList.get(i);
			if(value > cost) {
				sum+= value - cost;
			}
		}
		
		
		System.out.println(sum);

		
		
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		List<Integer> valueList = new ArrayList(); 
		List<Integer> costList = new ArrayList(); 
		
		for(int i = 0; i < n; i++) {
			int value = sc.nextInt();
			valueList.add(value);
		}
		for(int i = 0; i < n; i++) {
			int cost = sc.nextInt();
			costList.add(cost);
		}
		
		int sum = 0;
		for(int i = 0; i < n; i++) {
			int value = valueList.get(i);
			int cost = costList.get(i);
			if(value > cost) {
				sum+= value - cost;
			}
		}
		
		
		System.out.println(sum);

		
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> valueList = new ArrayList(); valueList new ArrayList() List<Integer> costList = new ArrayList(); costList new ArrayList() for(int i = 0; i < n; i++) {
			int value = sc.nextInt();
			valueList.add(value);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int value = sc.nextInt();
			valueList.add(value);
		} {
			int value = sc.nextInt();
			valueList.add(value);
		} int value = sc.nextInt(); value sc.nextInt() sc.nextInt sc valueList.add(value) valueList.add valueList value for(int i = 0; i < n; i++) {
			int cost = sc.nextInt();
			costList.add(cost);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int cost = sc.nextInt();
			costList.add(cost);
		} {
			int cost = sc.nextInt();
			costList.add(cost);
		} int cost = sc.nextInt(); cost sc.nextInt() sc.nextInt sc costList.add(cost) costList.add costList cost int sum = 0; sum 0 for(int i = 0; i < n; i++) {
			int value = valueList.get(i);
			int cost = costList.get(i);
			if(value > cost) {
				sum+= value - cost;
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int value = valueList.get(i);
			int cost = costList.get(i);
			if(value > cost) {
				sum+= value - cost;
			}
		} {
			int value = valueList.get(i);
			int cost = costList.get(i);
			if(value > cost) {
				sum+= value - cost;
			}
		} int value = valueList.get(i); value valueList.get(i) valueList.get valueList i int cost = costList.get(i); cost costList.get(i) costList.get costList i if(value > cost) {
				sum+= value - cost;
			} value > cost value cost {
				sum+= value - cost;
			} sum+= value - cost sum value - cost value cost 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 n = sc.nextInt();
		List<Integer> valueList = new ArrayList(); 
		List<Integer> costList = new ArrayList(); 
		
		for(int i = 0; i < n; i++) {
			int value = sc.nextInt();
			valueList.add(value);
		}
		for(int i = 0; i < n; i++) {
			int cost = sc.nextInt();
			costList.add(cost);
		}
		
		int sum = 0;
		for(int i = 0; i < n; i++) {
			int value = valueList.get(i);
			int cost = costList.get(i);
			if(value > cost) {
				sum+= value - cost;
			}
		}
		
		
		System.out.println(sum);

		
		
	}	

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		List<Integer> valueList = new ArrayList(); 
		List<Integer> costList = new ArrayList(); 
		
		for(int i = 0; i < n; i++) {
			int value = sc.nextInt();
			valueList.add(value);
		}
		for(int i = 0; i < n; i++) {
			int cost = sc.nextInt();
			costList.add(cost);
		}
		
		int sum = 0;
		for(int i = 0; i < n; i++) {
			int value = valueList.get(i);
			int cost = costList.get(i);
			if(value > cost) {
				sum+= value - cost;
			}
		}
		
		
		System.out.println(sum);

		
		
	}	

} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		List<Integer> valueList = new ArrayList(); 
		List<Integer> costList = new ArrayList(); 
		
		for(int i = 0; i < n; i++) {
			int value = sc.nextInt();
			valueList.add(value);
		}
		for(int i = 0; i < n; i++) {
			int cost = sc.nextInt();
			costList.add(cost);
		}
		
		int sum = 0;
		for(int i = 0; i < n; i++) {
			int value = valueList.get(i);
			int cost = costList.get(i);
			if(value > cost) {
				sum+= value - cost;
			}
		}
		
		
		System.out.println(sum);

		
		
	}	

}

