import java.util.*;
import java.io.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
	    Scanner scanner = new Scanner(System.in);
        int count = scanner.nextInt();
        int valueArray[] = new int[count];
        int costArray[] = new int[count];
        int ans = 0;
        for(int i = 0; i < count; i++){
			valueArray[i] = scanner.nextInt();
        }
        for(int i = 0; i < count; i++){
			costArray[i] = scanner.nextInt();
        }
        for(int i = 0; i < count; i++){
	        if (costArray[i] >= valueArray[i]) {
	        	continue;
	        }
	        ans = ans + valueArray[i] - costArray[i];
		}
		System.out.println(ans);
	}
} import java.util.*; util.* java import java.io.*; io.* java class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
	    Scanner scanner = new Scanner(System.in);
        int count = scanner.nextInt();
        int valueArray[] = new int[count];
        int costArray[] = new int[count];
        int ans = 0;
        for(int i = 0; i < count; i++){
			valueArray[i] = scanner.nextInt();
        }
        for(int i = 0; i < count; i++){
			costArray[i] = scanner.nextInt();
        }
        for(int i = 0; i < count; i++){
	        if (costArray[i] >= valueArray[i]) {
	        	continue;
	        }
	        ans = ans + valueArray[i] - costArray[i];
		}
		System.out.println(ans);
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
	    Scanner scanner = new Scanner(System.in);
        int count = scanner.nextInt();
        int valueArray[] = new int[count];
        int costArray[] = new int[count];
        int ans = 0;
        for(int i = 0; i < count; i++){
			valueArray[i] = scanner.nextInt();
        }
        for(int i = 0; i < count; i++){
			costArray[i] = scanner.nextInt();
        }
        for(int i = 0; i < count; i++){
	        if (costArray[i] >= valueArray[i]) {
	        	continue;
	        }
	        ans = ans + valueArray[i] - costArray[i];
		}
		System.out.println(ans);
	} main {
	    Scanner scanner = new Scanner(System.in);
        int count = scanner.nextInt();
        int valueArray[] = new int[count];
        int costArray[] = new int[count];
        int ans = 0;
        for(int i = 0; i < count; i++){
			valueArray[i] = scanner.nextInt();
        }
        for(int i = 0; i < count; i++){
			costArray[i] = scanner.nextInt();
        }
        for(int i = 0; i < count; i++){
	        if (costArray[i] >= valueArray[i]) {
	        	continue;
	        }
	        ans = ans + valueArray[i] - costArray[i];
		}
		System.out.println(ans);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int count = scanner.nextInt(); count scanner.nextInt() scanner.nextInt scanner int valueArray[] = new int[count]; valueArray new int[count] count int costArray[] = new int[count]; costArray new int[count] count int ans = 0; ans 0 for(int i = 0; i < count; i++){
			valueArray[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
			valueArray[i] = scanner.nextInt();
        } {
			valueArray[i] = scanner.nextInt();
        } valueArray[i] = scanner.nextInt() valueArray[i] valueArray i scanner.nextInt() scanner.nextInt scanner for(int i = 0; i < count; i++){
			costArray[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
			costArray[i] = scanner.nextInt();
        } {
			costArray[i] = scanner.nextInt();
        } costArray[i] = scanner.nextInt() costArray[i] costArray i scanner.nextInt() scanner.nextInt scanner for(int i = 0; i < count; i++){
	        if (costArray[i] >= valueArray[i]) {
	        	continue;
	        }
	        ans = ans + valueArray[i] - costArray[i];
		} int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
	        if (costArray[i] >= valueArray[i]) {
	        	continue;
	        }
	        ans = ans + valueArray[i] - costArray[i];
		} {
	        if (costArray[i] >= valueArray[i]) {
	        	continue;
	        }
	        ans = ans + valueArray[i] - costArray[i];
		} if (costArray[i] >= valueArray[i]) {
	        	continue;
	        } costArray[i] >= valueArray[i] costArray[i] costArray i valueArray[i] valueArray i {
	        	continue;
	        } continue; ans = ans + valueArray[i] - costArray[i] ans ans + valueArray[i] - costArray[i] ans + valueArray[i] ans valueArray[i] valueArray i costArray[i] costArray i System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
import java.io.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
	    Scanner scanner = new Scanner(System.in);
        int count = scanner.nextInt();
        int valueArray[] = new int[count];
        int costArray[] = new int[count];
        int ans = 0;
        for(int i = 0; i < count; i++){
			valueArray[i] = scanner.nextInt();
        }
        for(int i = 0; i < count; i++){
			costArray[i] = scanner.nextInt();
        }
        for(int i = 0; i < count; i++){
	        if (costArray[i] >= valueArray[i]) {
	        	continue;
	        }
	        ans = ans + valueArray[i] - costArray[i];
		}
		System.out.println(ans);
	}
}