import java.util.Scanner;

class Main {

    public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int num = Integer.parseInt(sc.nextLine());
      String values = sc.nextLine();
      String costs = sc.nextLine();

      int result = 0;
      for(int i= 0; i<num; i++){
        int v = Integer.parseInt(values.split(" ")[i]);
        int c = Integer.parseInt(costs.split(" ")[i]);
        if(v>c) result += v-c;
      }
      System.out.println(result);
    }


} import java.util.Scanner; Scanner java.util class Main {

    public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int num = Integer.parseInt(sc.nextLine());
      String values = sc.nextLine();
      String costs = sc.nextLine();

      int result = 0;
      for(int i= 0; i<num; i++){
        int v = Integer.parseInt(values.split(" ")[i]);
        int c = Integer.parseInt(costs.split(" ")[i]);
        if(v>c) result += v-c;
      }
      System.out.println(result);
    }


} Main public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int num = Integer.parseInt(sc.nextLine());
      String values = sc.nextLine();
      String costs = sc.nextLine();

      int result = 0;
      for(int i= 0; i<num; i++){
        int v = Integer.parseInt(values.split(" ")[i]);
        int c = Integer.parseInt(costs.split(" ")[i]);
        if(v>c) result += v-c;
      }
      System.out.println(result);
    } main {
      Scanner sc = new Scanner(System.in);
      int num = Integer.parseInt(sc.nextLine());
      String values = sc.nextLine();
      String costs = sc.nextLine();

      int result = 0;
      for(int i= 0; i<num; i++){
        int v = Integer.parseInt(values.split(" ")[i]);
        int c = Integer.parseInt(costs.split(" ")[i]);
        if(v>c) result += v-c;
      }
      System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = Integer.parseInt(sc.nextLine()); num Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String values = sc.nextLine(); values sc.nextLine() sc.nextLine sc String costs = sc.nextLine(); costs sc.nextLine() sc.nextLine sc int result = 0; result 0 for(int i= 0; i<num; i++){
        int v = Integer.parseInt(values.split(" ")[i]);
        int c = Integer.parseInt(costs.split(" ")[i]);
        if(v>c) result += v-c;
      } int i= 0; int i= 0; i 0 i<num i num i++ i++ i {
        int v = Integer.parseInt(values.split(" ")[i]);
        int c = Integer.parseInt(costs.split(" ")[i]);
        if(v>c) result += v-c;
      } {
        int v = Integer.parseInt(values.split(" ")[i]);
        int c = Integer.parseInt(costs.split(" ")[i]);
        if(v>c) result += v-c;
      } int v = Integer.parseInt(values.split(" ")[i]); v Integer.parseInt(values.split(" ")[i]) Integer.parseInt Integer values.split(" ")[i] values.split(" ") values.split values " " i int c = Integer.parseInt(costs.split(" ")[i]); c Integer.parseInt(costs.split(" ")[i]) Integer.parseInt Integer costs.split(" ")[i] costs.split(" ") costs.split costs " " i if(v>c) result += v-c; v>c v c result += v-c result v-c v c System.out.println(result) System.out.println System.out System System.out result String args[] args
import java.util.Scanner;

class Main {

    public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int num = Integer.parseInt(sc.nextLine());
      String values = sc.nextLine();
      String costs = sc.nextLine();

      int result = 0;
      for(int i= 0; i<num; i++){
        int v = Integer.parseInt(values.split(" ")[i]);
        int c = Integer.parseInt(costs.split(" ")[i]);
        if(v>c) result += v-c;
      }
      System.out.println(result);
    }


}