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

class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	ArrayList<Integer> value = new ArrayList<Integer>();
	ArrayList<Integer> cost = new ArrayList<Integer>();

	for (int i=0; i<N ; i++){
		int v = sc.nextInt();
		value.add(v);
	}

	for (int i=0; i<N ; i++){
		int c = sc.nextInt();
		cost.add(c);
	}

	int total=0;
	for (int i = 0; i<N; i++){
		int sub = value.get(i)-cost.get(i);
		if(sub>0){
			total+=sub;
		}
	}
	System.out.println(total);
  }
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	ArrayList<Integer> value = new ArrayList<Integer>();
	ArrayList<Integer> cost = new ArrayList<Integer>();

	for (int i=0; i<N ; i++){
		int v = sc.nextInt();
		value.add(v);
	}

	for (int i=0; i<N ; i++){
		int c = sc.nextInt();
		cost.add(c);
	}

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

	for (int i=0; i<N ; i++){
		int v = sc.nextInt();
		value.add(v);
	}

	for (int i=0; i<N ; i++){
		int c = sc.nextInt();
		cost.add(c);
	}

	int total=0;
	for (int i = 0; i<N; i++){
		int sub = value.get(i)-cost.get(i);
		if(sub>0){
			total+=sub;
		}
	}
	System.out.println(total);
  } main {
    Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	ArrayList<Integer> value = new ArrayList<Integer>();
	ArrayList<Integer> cost = new ArrayList<Integer>();

	for (int i=0; i<N ; i++){
		int v = sc.nextInt();
		value.add(v);
	}

	for (int i=0; i<N ; i++){
		int c = sc.nextInt();
		cost.add(c);
	}

	int total=0;
	for (int i = 0; i<N; i++){
		int sub = value.get(i)-cost.get(i);
		if(sub>0){
			total+=sub;
		}
	}
	System.out.println(total);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc ArrayList<Integer> value = new ArrayList<Integer>(); value new ArrayList<Integer>() ArrayList<Integer> cost = new ArrayList<Integer>(); cost new ArrayList<Integer>() for (int i=0; i<N ; i++){
		int v = sc.nextInt();
		value.add(v);
	} int i=0; int i=0; i 0 i<N i N i++ i++ i {
		int v = sc.nextInt();
		value.add(v);
	} {
		int v = sc.nextInt();
		value.add(v);
	} int v = sc.nextInt(); v sc.nextInt() sc.nextInt sc value.add(v) value.add value v for (int i=0; i<N ; i++){
		int c = sc.nextInt();
		cost.add(c);
	} int i=0; int i=0; i 0 i<N i N i++ i++ i {
		int c = sc.nextInt();
		cost.add(c);
	} {
		int c = sc.nextInt();
		cost.add(c);
	} int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc cost.add(c) cost.add cost c int total=0; total 0 for (int i = 0; i<N; i++){
		int sub = value.get(i)-cost.get(i);
		if(sub>0){
			total+=sub;
		}
	} int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
		int sub = value.get(i)-cost.get(i);
		if(sub>0){
			total+=sub;
		}
	} {
		int sub = value.get(i)-cost.get(i);
		if(sub>0){
			total+=sub;
		}
	} int sub = value.get(i)-cost.get(i); sub value.get(i)-cost.get(i) value.get(i) value.get value i cost.get(i) cost.get cost i if(sub>0){
			total+=sub;
		} sub>0 sub 0 {
			total+=sub;
		} total+=sub total sub System.out.println(total) System.out.println System.out System System.out total String args[] args
import java.util.Scanner;
import java.util.ArrayList;

class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	ArrayList<Integer> value = new ArrayList<Integer>();
	ArrayList<Integer> cost = new ArrayList<Integer>();

	for (int i=0; i<N ; i++){
		int v = sc.nextInt();
		value.add(v);
	}

	for (int i=0; i<N ; i++){
		int c = sc.nextInt();
		cost.add(c);
	}

	int total=0;
	for (int i = 0; i<N; i++){
		int sub = value.get(i)-cost.get(i);
		if(sub>0){
			total+=sub;
		}
	}
	System.out.println(total);
  }
}