import java.util.*;

class Main{
	public static void main(String[] args){
      Scanner scn = new Scanner(System.in);
      int n = scn.nextInt();
      int sum = 0;
      int[] value = new int[n];
      int[] cost = new int[n];
      for(int j = 0;j<n;j++){
        value[j] = scn.nextInt();
      }
      for(int k = 0;k<n;k++){
        cost[k] = scn.nextInt();
      }
      for(int i = 0; i<n;i++){
        if(value[i]-cost[i]>0){
          sum += value[i]-cost[i];
        }
      }
      System.out.println(sum);
	}
} import java.util.*; util.* java class Main{
	public static void main(String[] args){
      Scanner scn = new Scanner(System.in);
      int n = scn.nextInt();
      int sum = 0;
      int[] value = new int[n];
      int[] cost = new int[n];
      for(int j = 0;j<n;j++){
        value[j] = scn.nextInt();
      }
      for(int k = 0;k<n;k++){
        cost[k] = scn.nextInt();
      }
      for(int i = 0; i<n;i++){
        if(value[i]-cost[i]>0){
          sum += value[i]-cost[i];
        }
      }
      System.out.println(sum);
	}
} Main public static void main(String[] args){
      Scanner scn = new Scanner(System.in);
      int n = scn.nextInt();
      int sum = 0;
      int[] value = new int[n];
      int[] cost = new int[n];
      for(int j = 0;j<n;j++){
        value[j] = scn.nextInt();
      }
      for(int k = 0;k<n;k++){
        cost[k] = scn.nextInt();
      }
      for(int i = 0; i<n;i++){
        if(value[i]-cost[i]>0){
          sum += value[i]-cost[i];
        }
      }
      System.out.println(sum);
	} main {
      Scanner scn = new Scanner(System.in);
      int n = scn.nextInt();
      int sum = 0;
      int[] value = new int[n];
      int[] cost = new int[n];
      for(int j = 0;j<n;j++){
        value[j] = scn.nextInt();
      }
      for(int k = 0;k<n;k++){
        cost[k] = scn.nextInt();
      }
      for(int i = 0; i<n;i++){
        if(value[i]-cost[i]>0){
          sum += value[i]-cost[i];
        }
      }
      System.out.println(sum);
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn int sum = 0; sum 0 int[] value = new int[n]; value new int[n] n int[] cost = new int[n]; cost new int[n] n for(int j = 0;j<n;j++){
        value[j] = scn.nextInt();
      } int j = 0; int j = 0; j 0 j<n j n j++ j++ j {
        value[j] = scn.nextInt();
      } {
        value[j] = scn.nextInt();
      } value[j] = scn.nextInt() value[j] value j scn.nextInt() scn.nextInt scn for(int k = 0;k<n;k++){
        cost[k] = scn.nextInt();
      } int k = 0; int k = 0; k 0 k<n k n k++ k++ k {
        cost[k] = scn.nextInt();
      } {
        cost[k] = scn.nextInt();
      } cost[k] = scn.nextInt() cost[k] cost k scn.nextInt() scn.nextInt scn for(int i = 0; i<n;i++){
        if(value[i]-cost[i]>0){
          sum += value[i]-cost[i];
        }
      } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
        if(value[i]-cost[i]>0){
          sum += value[i]-cost[i];
        }
      } {
        if(value[i]-cost[i]>0){
          sum += value[i]-cost[i];
        }
      } if(value[i]-cost[i]>0){
          sum += value[i]-cost[i];
        } value[i]-cost[i]>0 value[i]-cost[i] value[i] value i cost[i] cost i 0 {
          sum += value[i]-cost[i];
        } sum += value[i]-cost[i] sum value[i]-cost[i] value[i] value i cost[i] cost i System.out.println(sum) System.out.println System.out System System.out sum String[] args args
import java.util.*;

class Main{
	public static void main(String[] args){
      Scanner scn = new Scanner(System.in);
      int n = scn.nextInt();
      int sum = 0;
      int[] value = new int[n];
      int[] cost = new int[n];
      for(int j = 0;j<n;j++){
        value[j] = scn.nextInt();
      }
      for(int k = 0;k<n;k++){
        cost[k] = scn.nextInt();
      }
      for(int i = 0; i<n;i++){
        if(value[i]-cost[i]>0){
          sum += value[i]-cost[i];
        }
      }
      System.out.println(sum);
	}
}