import java.util.*;
import java.io.*;
public class Main
{
    public static void main(String []args) throws IOException {
    	FastScanner in  = new FastScanner(System.in);
    	PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false);
    	solve(in, out);
    	in.close();
    	out.close();
    }
    static long gcd(long a, long b){ return (b==0) ? a : gcd(b, a%b); }
    static int gcd(int a, int b){ return (b==0) ? a : gcd(b, a%b); }
    static class FastScanner{
	BufferedReader reader;
	StringTokenizer st;
	FastScanner(InputStream stream){reader=new BufferedReader(new InputStreamReader(stream));st=null;}
	String next(){while(st == null || !st.hasMoreTokens()){try{String line = reader.readLine();if(line == null){return null;}
	     st = new StringTokenizer(line);}catch (Exception e){throw new RuntimeException();}}return st.nextToken();}
	String nextLine()  {String s=null;try{s=reader.readLine();}catch(IOException e){e.printStackTrace();}return s;}
	int    nextInt()   {return Integer.parseInt(next());}
	long   nextLong()  {return Long.parseLong(next());}
	double nextDouble(){return Double.parseDouble(next());}
	char   nextChar()  {return next().charAt(0);}
	int[]  nextIntArray(int n)         {int[] arr= new int[n];   int i=0;while(i<n){arr[i++]=nextInt();}  return arr;}
	long[] nextLongArray(int n)        {long[]arr= new long[n];  int i=0;while(i<n){arr[i++]=nextLong();} return arr;}
	int[]  nextIntArrayOneBased(int n) {int[] arr= new int[n+1]; int i=1;while(i<=n){arr[i++]=nextInt();} return arr;}
	long[] nextLongArrayOneBased(int n){long[]arr= new long[n+1];int i=1;while(i<=n){arr[i++]=nextLong();}return arr;}
	void   close(){try{reader.close();}catch(IOException e){e.printStackTrace();}}
    }
    
    /********* SOLUTION STARTS HERE ************/
    
    private static void solve(FastScanner in, PrintWriter out){
        int n = in.nextInt();
        int v[] = new int[n];
        int c[] = new int[n];
        int ans=0;
        for(int i=0;i<n;i++) v[i] = in.nextInt();
        for(int i=0;i<n;i++) c[i] = in.nextInt();
        for(int i=0;i<n;i++) if(v[i]>c[i]) ans+=v[i]-c[i];
        out.println(ans);
    }
    
    /************* SOLUTION ENDS HERE **********/
} import java.util.*; util.* java import java.io.*; io.* java public class Main
{
    public static void main(String []args) throws IOException {
    	FastScanner in  = new FastScanner(System.in);
    	PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false);
    	solve(in, out);
    	in.close();
    	out.close();
    }
    static long gcd(long a, long b){ return (b==0) ? a : gcd(b, a%b); }
    static int gcd(int a, int b){ return (b==0) ? a : gcd(b, a%b); }
    static class FastScanner{
	BufferedReader reader;
	StringTokenizer st;
	FastScanner(InputStream stream){reader=new BufferedReader(new InputStreamReader(stream));st=null;}
	String next(){while(st == null || !st.hasMoreTokens()){try{String line = reader.readLine();if(line == null){return null;}
	     st = new StringTokenizer(line);}catch (Exception e){throw new RuntimeException();}}return st.nextToken();}
	String nextLine()  {String s=null;try{s=reader.readLine();}catch(IOException e){e.printStackTrace();}return s;}
	int    nextInt()   {return Integer.parseInt(next());}
	long   nextLong()  {return Long.parseLong(next());}
	double nextDouble(){return Double.parseDouble(next());}
	char   nextChar()  {return next().charAt(0);}
	int[]  nextIntArray(int n)         {int[] arr= new int[n];   int i=0;while(i<n){arr[i++]=nextInt();}  return arr;}
	long[] nextLongArray(int n)        {long[]arr= new long[n];  int i=0;while(i<n){arr[i++]=nextLong();} return arr;}
	int[]  nextIntArrayOneBased(int n) {int[] arr= new int[n+1]; int i=1;while(i<=n){arr[i++]=nextInt();} return arr;}
	long[] nextLongArrayOneBased(int n){long[]arr= new long[n+1];int i=1;while(i<=n){arr[i++]=nextLong();}return arr;}
	void   close(){try{reader.close();}catch(IOException e){e.printStackTrace();}}
    }
    
    /********* SOLUTION STARTS HERE ************/
    
    private static void solve(FastScanner in, PrintWriter out){
        int n = in.nextInt();
        int v[] = new int[n];
        int c[] = new int[n];
        int ans=0;
        for(int i=0;i<n;i++) v[i] = in.nextInt();
        for(int i=0;i<n;i++) c[i] = in.nextInt();
        for(int i=0;i<n;i++) if(v[i]>c[i]) ans+=v[i]-c[i];
        out.println(ans);
    }
    
    /************* SOLUTION ENDS HERE **********/
} Main public static void main(String []args) throws IOException {
    	FastScanner in  = new FastScanner(System.in);
    	PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false);
    	solve(in, out);
    	in.close();
    	out.close();
    } main {
    	FastScanner in  = new FastScanner(System.in);
    	PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false);
    	solve(in, out);
    	in.close();
    	out.close();
    } FastScanner in  = new FastScanner(System.in); in new FastScanner(System.in) PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false); out new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false) solve(in, out) solve in out in.close() in.close in out.close() out.close out String []args args static long gcd(long a, long b){ return (b==0) ? a : gcd(b, a%b); } gcd { return (b==0) ? a : gcd(b, a%b); } return (b==0) ? a : gcd(b, a%b); (b==0) ? a : gcd(b, a%b) (b==0) b 0 a gcd(b, a%b) gcd b a%b a b long a a long b b static int gcd(int a, int b){ return (b==0) ? a : gcd(b, a%b); } gcd { return (b==0) ? a : gcd(b, a%b); } return (b==0) ? a : gcd(b, a%b); (b==0) ? a : gcd(b, a%b) (b==0) b 0 a gcd(b, a%b) gcd b a%b a b int a a int b b /********* SOLUTION STARTS HERE ************/
    
    private static void solve(FastScanner in, PrintWriter out){
        int n = in.nextInt();
        int v[] = new int[n];
        int c[] = new int[n];
        int ans=0;
        for(int i=0;i<n;i++) v[i] = in.nextInt();
        for(int i=0;i<n;i++) c[i] = in.nextInt();
        for(int i=0;i<n;i++) if(v[i]>c[i]) ans+=v[i]-c[i];
        out.println(ans);
    } solve {
        int n = in.nextInt();
        int v[] = new int[n];
        int c[] = new int[n];
        int ans=0;
        for(int i=0;i<n;i++) v[i] = in.nextInt();
        for(int i=0;i<n;i++) c[i] = in.nextInt();
        for(int i=0;i<n;i++) if(v[i]>c[i]) ans+=v[i]-c[i];
        out.println(ans);
    } int n = in.nextInt(); n in.nextInt() in.nextInt in int v[] = new int[n]; v new int[n] n int c[] = new int[n]; c new int[n] n int ans=0; ans 0 for(int i=0;i<n;i++) v[i] = in.nextInt(); int i=0; int i=0; i 0 i<n i n i++ i++ i v[i] = in.nextInt(); v[i] = in.nextInt() v[i] v i in.nextInt() in.nextInt in for(int i=0;i<n;i++) c[i] = in.nextInt(); int i=0; int i=0; i 0 i<n i n i++ i++ i c[i] = in.nextInt(); c[i] = in.nextInt() c[i] c i in.nextInt() in.nextInt in for(int i=0;i<n;i++) if(v[i]>c[i]) ans+=v[i]-c[i]; int i=0; int i=0; i 0 i<n i n i++ i++ i if(v[i]>c[i]) ans+=v[i]-c[i]; if(v[i]>c[i]) ans+=v[i]-c[i]; v[i]>c[i] v[i] v i c[i] c i ans+=v[i]-c[i] ans v[i]-c[i] v[i] v i c[i] c i out.println(ans) out.println out ans FastScanner in in PrintWriter out out static class FastScanner{
	BufferedReader reader;
	StringTokenizer st;
	FastScanner(InputStream stream){reader=new BufferedReader(new InputStreamReader(stream));st=null;}
	String next(){while(st == null || !st.hasMoreTokens()){try{String line = reader.readLine();if(line == null){return null;}
	     st = new StringTokenizer(line);}catch (Exception e){throw new RuntimeException();}}return st.nextToken();}
	String nextLine()  {String s=null;try{s=reader.readLine();}catch(IOException e){e.printStackTrace();}return s;}
	int    nextInt()   {return Integer.parseInt(next());}
	long   nextLong()  {return Long.parseLong(next());}
	double nextDouble(){return Double.parseDouble(next());}
	char   nextChar()  {return next().charAt(0);}
	int[]  nextIntArray(int n)         {int[] arr= new int[n];   int i=0;while(i<n){arr[i++]=nextInt();}  return arr;}
	long[] nextLongArray(int n)        {long[]arr= new long[n];  int i=0;while(i<n){arr[i++]=nextLong();} return arr;}
	int[]  nextIntArrayOneBased(int n) {int[] arr= new int[n+1]; int i=1;while(i<=n){arr[i++]=nextInt();} return arr;}
	long[] nextLongArrayOneBased(int n){long[]arr= new long[n+1];int i=1;while(i<=n){arr[i++]=nextLong();}return arr;}
	void   close(){try{reader.close();}catch(IOException e){e.printStackTrace();}}
    } FastScanner BufferedReader reader; reader StringTokenizer st; st FastScanner(InputStream stream){reader=new BufferedReader(new InputStreamReader(stream));st=null;} FastScanner {reader=new BufferedReader(new InputStreamReader(stream));st=null;} reader=new BufferedReader(new InputStreamReader(stream)) reader new BufferedReader(new InputStreamReader(stream)) st=null st null InputStream stream stream String next(){while(st == null || !st.hasMoreTokens()){try{String line = reader.readLine();if(line == null){return null;}
	     st = new StringTokenizer(line);}catch (Exception e){throw new RuntimeException();}}return st.nextToken();} next {while(st == null || !st.hasMoreTokens()){try{String line = reader.readLine();if(line == null){return null;}
	     st = new StringTokenizer(line);}catch (Exception e){throw new RuntimeException();}}return st.nextToken();} while(st == null || !st.hasMoreTokens()){try{String line = reader.readLine();if(line == null){return null;}
	     st = new StringTokenizer(line);}catch (Exception e){throw new RuntimeException();}} st == null || !st.hasMoreTokens() st == null st null !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st {try{String line = reader.readLine();if(line == null){return null;}
	     st = new StringTokenizer(line);}catch (Exception e){throw new RuntimeException();}} try{String line = reader.readLine();if(line == null){return null;}
	     st = new StringTokenizer(line);}catch (Exception e){throw new RuntimeException();} catch (Exception e){throw new RuntimeException();} Exception e {throw new RuntimeException();} throw new RuntimeException(); new RuntimeException() {String line = reader.readLine();if(line == null){return null;}
	     st = new StringTokenizer(line);} String line = reader.readLine(); line reader.readLine() reader.readLine reader if(line == null){return null;} line == null line null {return null;} return null; null st = new StringTokenizer(line) st new StringTokenizer(line) return st.nextToken(); st.nextToken() st.nextToken st String nextLine()  {String s=null;try{s=reader.readLine();}catch(IOException e){e.printStackTrace();}return s;} nextLine {String s=null;try{s=reader.readLine();}catch(IOException e){e.printStackTrace();}return s;} String s=null; s null try{s=reader.readLine();}catch(IOException e){e.printStackTrace();} catch(IOException e){e.printStackTrace();} IOException e {e.printStackTrace();} e.printStackTrace() e.printStackTrace e {s=reader.readLine();} s=reader.readLine() s reader.readLine() reader.readLine reader return s; s int    nextInt()   {return Integer.parseInt(next());} nextInt {return Integer.parseInt(next());} return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next long   nextLong()  {return Long.parseLong(next());} nextLong {return Long.parseLong(next());} return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next double nextDouble(){return Double.parseDouble(next());} nextDouble {return Double.parseDouble(next());} return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next char   nextChar()  {return next().charAt(0);} nextChar {return next().charAt(0);} return next().charAt(0); next().charAt(0) next().charAt next() next 0 int[]  nextIntArray(int n)         {int[] arr= new int[n];   int i=0;while(i<n){arr[i++]=nextInt();}  return arr;} nextIntArray {int[] arr= new int[n];   int i=0;while(i<n){arr[i++]=nextInt();}  return arr;} int[] arr= new int[n]; arr new int[n] n int i=0; i 0 while(i<n){arr[i++]=nextInt();} i<n i n {arr[i++]=nextInt();} arr[i++]=nextInt() arr[i++] arr i++ i nextInt() nextInt return arr; arr int n n long[] nextLongArray(int n)        {long[]arr= new long[n];  int i=0;while(i<n){arr[i++]=nextLong();} return arr;} nextLongArray {long[]arr= new long[n];  int i=0;while(i<n){arr[i++]=nextLong();} return arr;} long[]arr= new long[n]; arr new long[n] n int i=0; i 0 while(i<n){arr[i++]=nextLong();} i<n i n {arr[i++]=nextLong();} arr[i++]=nextLong() arr[i++] arr i++ i nextLong() nextLong return arr; arr int n n int[]  nextIntArrayOneBased(int n) {int[] arr= new int[n+1]; int i=1;while(i<=n){arr[i++]=nextInt();} return arr;} nextIntArrayOneBased {int[] arr= new int[n+1]; int i=1;while(i<=n){arr[i++]=nextInt();} return arr;} int[] arr= new int[n+1]; arr new int[n+1] n+1 n 1 int i=1; i 1 while(i<=n){arr[i++]=nextInt();} i<=n i n {arr[i++]=nextInt();} arr[i++]=nextInt() arr[i++] arr i++ i nextInt() nextInt return arr; arr int n n long[] nextLongArrayOneBased(int n){long[]arr= new long[n+1];int i=1;while(i<=n){arr[i++]=nextLong();}return arr;} nextLongArrayOneBased {long[]arr= new long[n+1];int i=1;while(i<=n){arr[i++]=nextLong();}return arr;} long[]arr= new long[n+1]; arr new long[n+1] n+1 n 1 int i=1; i 1 while(i<=n){arr[i++]=nextLong();} i<=n i n {arr[i++]=nextLong();} arr[i++]=nextLong() arr[i++] arr i++ i nextLong() nextLong return arr; arr int n n void   close(){try{reader.close();}catch(IOException e){e.printStackTrace();}} close {try{reader.close();}catch(IOException e){e.printStackTrace();}} try{reader.close();}catch(IOException e){e.printStackTrace();} catch(IOException e){e.printStackTrace();} IOException e {e.printStackTrace();} e.printStackTrace() e.printStackTrace e {reader.close();} reader.close() reader.close reader public class Main
{
    public static void main(String []args) throws IOException {
    	FastScanner in  = new FastScanner(System.in);
    	PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false);
    	solve(in, out);
    	in.close();
    	out.close();
    }
    static long gcd(long a, long b){ return (b==0) ? a : gcd(b, a%b); }
    static int gcd(int a, int b){ return (b==0) ? a : gcd(b, a%b); }
    static class FastScanner{
	BufferedReader reader;
	StringTokenizer st;
	FastScanner(InputStream stream){reader=new BufferedReader(new InputStreamReader(stream));st=null;}
	String next(){while(st == null || !st.hasMoreTokens()){try{String line = reader.readLine();if(line == null){return null;}
	     st = new StringTokenizer(line);}catch (Exception e){throw new RuntimeException();}}return st.nextToken();}
	String nextLine()  {String s=null;try{s=reader.readLine();}catch(IOException e){e.printStackTrace();}return s;}
	int    nextInt()   {return Integer.parseInt(next());}
	long   nextLong()  {return Long.parseLong(next());}
	double nextDouble(){return Double.parseDouble(next());}
	char   nextChar()  {return next().charAt(0);}
	int[]  nextIntArray(int n)         {int[] arr= new int[n];   int i=0;while(i<n){arr[i++]=nextInt();}  return arr;}
	long[] nextLongArray(int n)        {long[]arr= new long[n];  int i=0;while(i<n){arr[i++]=nextLong();} return arr;}
	int[]  nextIntArrayOneBased(int n) {int[] arr= new int[n+1]; int i=1;while(i<=n){arr[i++]=nextInt();} return arr;}
	long[] nextLongArrayOneBased(int n){long[]arr= new long[n+1];int i=1;while(i<=n){arr[i++]=nextLong();}return arr;}
	void   close(){try{reader.close();}catch(IOException e){e.printStackTrace();}}
    }
    
    /********* SOLUTION STARTS HERE ************/
    
    private static void solve(FastScanner in, PrintWriter out){
        int n = in.nextInt();
        int v[] = new int[n];
        int c[] = new int[n];
        int ans=0;
        for(int i=0;i<n;i++) v[i] = in.nextInt();
        for(int i=0;i<n;i++) c[i] = in.nextInt();
        for(int i=0;i<n;i++) if(v[i]>c[i]) ans+=v[i]-c[i];
        out.println(ans);
    }
    
    /************* SOLUTION ENDS HERE **********/
} public class Main
{
    public static void main(String []args) throws IOException {
    	FastScanner in  = new FastScanner(System.in);
    	PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false);
    	solve(in, out);
    	in.close();
    	out.close();
    }
    static long gcd(long a, long b){ return (b==0) ? a : gcd(b, a%b); }
    static int gcd(int a, int b){ return (b==0) ? a : gcd(b, a%b); }
    static class FastScanner{
	BufferedReader reader;
	StringTokenizer st;
	FastScanner(InputStream stream){reader=new BufferedReader(new InputStreamReader(stream));st=null;}
	String next(){while(st == null || !st.hasMoreTokens()){try{String line = reader.readLine();if(line == null){return null;}
	     st = new StringTokenizer(line);}catch (Exception e){throw new RuntimeException();}}return st.nextToken();}
	String nextLine()  {String s=null;try{s=reader.readLine();}catch(IOException e){e.printStackTrace();}return s;}
	int    nextInt()   {return Integer.parseInt(next());}
	long   nextLong()  {return Long.parseLong(next());}
	double nextDouble(){return Double.parseDouble(next());}
	char   nextChar()  {return next().charAt(0);}
	int[]  nextIntArray(int n)         {int[] arr= new int[n];   int i=0;while(i<n){arr[i++]=nextInt();}  return arr;}
	long[] nextLongArray(int n)        {long[]arr= new long[n];  int i=0;while(i<n){arr[i++]=nextLong();} return arr;}
	int[]  nextIntArrayOneBased(int n) {int[] arr= new int[n+1]; int i=1;while(i<=n){arr[i++]=nextInt();} return arr;}
	long[] nextLongArrayOneBased(int n){long[]arr= new long[n+1];int i=1;while(i<=n){arr[i++]=nextLong();}return arr;}
	void   close(){try{reader.close();}catch(IOException e){e.printStackTrace();}}
    }
    
    /********* SOLUTION STARTS HERE ************/
    
    private static void solve(FastScanner in, PrintWriter out){
        int n = in.nextInt();
        int v[] = new int[n];
        int c[] = new int[n];
        int ans=0;
        for(int i=0;i<n;i++) v[i] = in.nextInt();
        for(int i=0;i<n;i++) c[i] = in.nextInt();
        for(int i=0;i<n;i++) if(v[i]>c[i]) ans+=v[i]-c[i];
        out.println(ans);
    }
    
    /************* SOLUTION ENDS HERE **********/
} Main
import java.util.*;
import java.io.*;
public class Main
{
    public static void main(String []args) throws IOException {
    	FastScanner in  = new FastScanner(System.in);
    	PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false);
    	solve(in, out);
    	in.close();
    	out.close();
    }
    static long gcd(long a, long b){ return (b==0) ? a : gcd(b, a%b); }
    static int gcd(int a, int b){ return (b==0) ? a : gcd(b, a%b); }
    static class FastScanner{
	BufferedReader reader;
	StringTokenizer st;
	FastScanner(InputStream stream){reader=new BufferedReader(new InputStreamReader(stream));st=null;}
	String next(){while(st == null || !st.hasMoreTokens()){try{String line = reader.readLine();if(line == null){return null;}
	     st = new StringTokenizer(line);}catch (Exception e){throw new RuntimeException();}}return st.nextToken();}
	String nextLine()  {String s=null;try{s=reader.readLine();}catch(IOException e){e.printStackTrace();}return s;}
	int    nextInt()   {return Integer.parseInt(next());}
	long   nextLong()  {return Long.parseLong(next());}
	double nextDouble(){return Double.parseDouble(next());}
	char   nextChar()  {return next().charAt(0);}
	int[]  nextIntArray(int n)         {int[] arr= new int[n];   int i=0;while(i<n){arr[i++]=nextInt();}  return arr;}
	long[] nextLongArray(int n)        {long[]arr= new long[n];  int i=0;while(i<n){arr[i++]=nextLong();} return arr;}
	int[]  nextIntArrayOneBased(int n) {int[] arr= new int[n+1]; int i=1;while(i<=n){arr[i++]=nextInt();} return arr;}
	long[] nextLongArrayOneBased(int n){long[]arr= new long[n+1];int i=1;while(i<=n){arr[i++]=nextLong();}return arr;}
	void   close(){try{reader.close();}catch(IOException e){e.printStackTrace();}}
    }
    
    /********* SOLUTION STARTS HERE ************/
    
    private static void solve(FastScanner in, PrintWriter out){
        int n = in.nextInt();
        int v[] = new int[n];
        int c[] = new int[n];
        int ans=0;
        for(int i=0;i<n;i++) v[i] = in.nextInt();
        for(int i=0;i<n;i++) c[i] = in.nextInt();
        for(int i=0;i<n;i++) if(v[i]>c[i]) ans+=v[i]-c[i];
        out.println(ans);
    }
    
    /************* SOLUTION ENDS HERE **********/
}