import java.util.*;
public class Main {
	//定義関数から参照できる変数定義はこの辺
	static int N;
	static int V [];
	static int C [];
	static int ans=0;
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		//long Var_name = sc.nextLong();
    	N=sc.nextInt();
    	V=new int[N+1];
    	C=new int[N+1];

    	for(int i=1;i<=N;i++){
    		V[i]=sc.nextInt();
    		//C[i]=sc.nextInt();
    	}


    	for(int i=1;i<=N;i++){
    		C[i]=sc.nextInt();
    	}

    	for(int i=1;i<=N;i++){
    		if (V[i]>C[i]) {
    			ans=ans+(V[i]-C[i]);
    		}
    	}



		System.out.println(ans);
		//System.out.print(ans);
    }
} import java.util.*; util.* java public class Main {
	//定義関数から参照できる変数定義はこの辺
	static int N;
	static int V [];
	static int C [];
	static int ans=0;
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		//long Var_name = sc.nextLong();
    	N=sc.nextInt();
    	V=new int[N+1];
    	C=new int[N+1];

    	for(int i=1;i<=N;i++){
    		V[i]=sc.nextInt();
    		//C[i]=sc.nextInt();
    	}


    	for(int i=1;i<=N;i++){
    		C[i]=sc.nextInt();
    	}

    	for(int i=1;i<=N;i++){
    		if (V[i]>C[i]) {
    			ans=ans+(V[i]-C[i]);
    		}
    	}



		System.out.println(ans);
		//System.out.print(ans);
    }
} Main //定義関数から参照できる変数定義はこの辺
	static int N; N static int V []; V static int C []; C static int ans=0; ans 0 public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		//long Var_name = sc.nextLong();
    	N=sc.nextInt();
    	V=new int[N+1];
    	C=new int[N+1];

    	for(int i=1;i<=N;i++){
    		V[i]=sc.nextInt();
    		//C[i]=sc.nextInt();
    	}


    	for(int i=1;i<=N;i++){
    		C[i]=sc.nextInt();
    	}

    	for(int i=1;i<=N;i++){
    		if (V[i]>C[i]) {
    			ans=ans+(V[i]-C[i]);
    		}
    	}



		System.out.println(ans);
		//System.out.print(ans);
    } main {
    	Scanner sc = new Scanner(System.in);
		//long Var_name = sc.nextLong();
    	N=sc.nextInt();
    	V=new int[N+1];
    	C=new int[N+1];

    	for(int i=1;i<=N;i++){
    		V[i]=sc.nextInt();
    		//C[i]=sc.nextInt();
    	}


    	for(int i=1;i<=N;i++){
    		C[i]=sc.nextInt();
    	}

    	for(int i=1;i<=N;i++){
    		if (V[i]>C[i]) {
    			ans=ans+(V[i]-C[i]);
    		}
    	}



		System.out.println(ans);
		//System.out.print(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) N=sc.nextInt() N sc.nextInt() sc.nextInt sc V=new int[N+1] V new int[N+1] N+1 N 1 C=new int[N+1] C new int[N+1] N+1 N 1 for(int i=1;i<=N;i++){
    		V[i]=sc.nextInt();
    		//C[i]=sc.nextInt();
    	} int i=1; int i=1; i 1 i<=N i N i++ i++ i {
    		V[i]=sc.nextInt();
    		//C[i]=sc.nextInt();
    	} {
    		V[i]=sc.nextInt();
    		//C[i]=sc.nextInt();
    	} V[i]=sc.nextInt() V[i] V i sc.nextInt() sc.nextInt sc for(int i=1;i<=N;i++){
    		C[i]=sc.nextInt();
    	} int i=1; int i=1; i 1 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 for(int i=1;i<=N;i++){
    		if (V[i]>C[i]) {
    			ans=ans+(V[i]-C[i]);
    		}
    	} int i=1; int i=1; i 1 i<=N i N i++ i++ i {
    		if (V[i]>C[i]) {
    			ans=ans+(V[i]-C[i]);
    		}
    	} {
    		if (V[i]>C[i]) {
    			ans=ans+(V[i]-C[i]);
    		}
    	} if (V[i]>C[i]) {
    			ans=ans+(V[i]-C[i]);
    		} V[i]>C[i] V[i] V i C[i] C i {
    			ans=ans+(V[i]-C[i]);
    		} ans=ans+(V[i]-C[i]) ans ans+(V[i]-C[i]) ans (V[i]-C[i]) V[i] V i C[i] C i System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	//定義関数から参照できる変数定義はこの辺
	static int N;
	static int V [];
	static int C [];
	static int ans=0;
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		//long Var_name = sc.nextLong();
    	N=sc.nextInt();
    	V=new int[N+1];
    	C=new int[N+1];

    	for(int i=1;i<=N;i++){
    		V[i]=sc.nextInt();
    		//C[i]=sc.nextInt();
    	}


    	for(int i=1;i<=N;i++){
    		C[i]=sc.nextInt();
    	}

    	for(int i=1;i<=N;i++){
    		if (V[i]>C[i]) {
    			ans=ans+(V[i]-C[i]);
    		}
    	}



		System.out.println(ans);
		//System.out.print(ans);
    }
} public class Main {
	//定義関数から参照できる変数定義はこの辺
	static int N;
	static int V [];
	static int C [];
	static int ans=0;
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		//long Var_name = sc.nextLong();
    	N=sc.nextInt();
    	V=new int[N+1];
    	C=new int[N+1];

    	for(int i=1;i<=N;i++){
    		V[i]=sc.nextInt();
    		//C[i]=sc.nextInt();
    	}


    	for(int i=1;i<=N;i++){
    		C[i]=sc.nextInt();
    	}

    	for(int i=1;i<=N;i++){
    		if (V[i]>C[i]) {
    			ans=ans+(V[i]-C[i]);
    		}
    	}



		System.out.println(ans);
		//System.out.print(ans);
    }
} Main
import java.util.*;
public class Main {
	//定義関数から参照できる変数定義はこの辺
	static int N;
	static int V [];
	static int C [];
	static int ans=0;
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		//long Var_name = sc.nextLong();
    	N=sc.nextInt();
    	V=new int[N+1];
    	C=new int[N+1];

    	for(int i=1;i<=N;i++){
    		V[i]=sc.nextInt();
    		//C[i]=sc.nextInt();
    	}


    	for(int i=1;i<=N;i++){
    		C[i]=sc.nextInt();
    	}

    	for(int i=1;i<=N;i++){
    		if (V[i]>C[i]) {
    			ans=ans+(V[i]-C[i]);
    		}
    	}



		System.out.println(ans);
		//System.out.print(ans);
    }
}