import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		
		int[] value = new int[n];
		int[] cost = new int[n];
		
		for(int i=0; i<n; i++) {
			value[i] = sc.nextInt();
		}
		
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
		}
		
		int[] nums = new int[n];
		
		for(int i=0; i<n; i++) {
			nums[i] = value[i] - cost[i];
		}
		
		int sum = 0;
		
		for(int i=0; i<n; i++) {
			if(nums[i] > 0) {
				sum += nums[i];
			}
		}
		
		System.out.println(sum);
		
	}
} 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();
		
		int[] value = new int[n];
		int[] cost = new int[n];
		
		for(int i=0; i<n; i++) {
			value[i] = sc.nextInt();
		}
		
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
		}
		
		int[] nums = new int[n];
		
		for(int i=0; i<n; i++) {
			nums[i] = value[i] - cost[i];
		}
		
		int sum = 0;
		
		for(int i=0; i<n; i++) {
			if(nums[i] > 0) {
				sum += nums[i];
			}
		}
		
		System.out.println(sum);
		
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		
		int[] value = new int[n];
		int[] cost = new int[n];
		
		for(int i=0; i<n; i++) {
			value[i] = sc.nextInt();
		}
		
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
		}
		
		int[] nums = new int[n];
		
		for(int i=0; i<n; i++) {
			nums[i] = value[i] - cost[i];
		}
		
		int sum = 0;
		
		for(int i=0; i<n; i++) {
			if(nums[i] > 0) {
				sum += nums[i];
			}
		}
		
		System.out.println(sum);
		
	} main {

		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		
		int[] value = new int[n];
		int[] cost = new int[n];
		
		for(int i=0; i<n; i++) {
			value[i] = sc.nextInt();
		}
		
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
		}
		
		int[] nums = new int[n];
		
		for(int i=0; i<n; i++) {
			nums[i] = value[i] - cost[i];
		}
		
		int sum = 0;
		
		for(int i=0; i<n; i++) {
			if(nums[i] > 0) {
				sum += nums[i];
			}
		}
		
		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 int[] value = new int[n]; value new int[n] n int[] cost = new int[n]; cost new int[n] n for(int i=0; i<n; i++) {
			value[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			value[i] = sc.nextInt();
		} {
			value[i] = sc.nextInt();
		} value[i] = sc.nextInt() value[i] value i sc.nextInt() sc.nextInt sc for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			cost[i] = sc.nextInt();
		} {
			cost[i] = sc.nextInt();
		} cost[i] = sc.nextInt() cost[i] cost i sc.nextInt() sc.nextInt sc int[] nums = new int[n]; nums new int[n] n for(int i=0; i<n; i++) {
			nums[i] = value[i] - cost[i];
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			nums[i] = value[i] - cost[i];
		} {
			nums[i] = value[i] - cost[i];
		} nums[i] = value[i] - cost[i] nums[i] nums i value[i] - cost[i] value[i] value i cost[i] cost i int sum = 0; sum 0 for(int i=0; i<n; i++) {
			if(nums[i] > 0) {
				sum += nums[i];
			}
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			if(nums[i] > 0) {
				sum += nums[i];
			}
		} {
			if(nums[i] > 0) {
				sum += nums[i];
			}
		} if(nums[i] > 0) {
				sum += nums[i];
			} nums[i] > 0 nums[i] nums i 0 {
				sum += nums[i];
			} sum += nums[i] sum nums[i] nums i 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();
		
		int[] value = new int[n];
		int[] cost = new int[n];
		
		for(int i=0; i<n; i++) {
			value[i] = sc.nextInt();
		}
		
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
		}
		
		int[] nums = new int[n];
		
		for(int i=0; i<n; i++) {
			nums[i] = value[i] - cost[i];
		}
		
		int sum = 0;
		
		for(int i=0; i<n; i++) {
			if(nums[i] > 0) {
				sum += nums[i];
			}
		}
		
		System.out.println(sum);
		
	}
} public class Main {
	
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		
		int[] value = new int[n];
		int[] cost = new int[n];
		
		for(int i=0; i<n; i++) {
			value[i] = sc.nextInt();
		}
		
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
		}
		
		int[] nums = new int[n];
		
		for(int i=0; i<n; i++) {
			nums[i] = value[i] - cost[i];
		}
		
		int sum = 0;
		
		for(int i=0; i<n; i++) {
			if(nums[i] > 0) {
				sum += nums[i];
			}
		}
		
		System.out.println(sum);
		
	}
} Main
import java.util.Scanner;

public class Main {
	
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		
		int[] value = new int[n];
		int[] cost = new int[n];
		
		for(int i=0; i<n; i++) {
			value[i] = sc.nextInt();
		}
		
		for(int i=0; i<n; i++) {
			cost[i] = sc.nextInt();
		}
		
		int[] nums = new int[n];
		
		for(int i=0; i<n; i++) {
			nums[i] = value[i] - cost[i];
		}
		
		int sum = 0;
		
		for(int i=0; i<n; i++) {
			if(nums[i] > 0) {
				sum += nums[i];
			}
		}
		
		System.out.println(sum);
		
	}
}
