import java.util.Scanner;

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

    Scanner sc = new Scanner(System.in);
    int iNum = sc.nextInt();
    sc.nextLine();
    String sValue = sc.nextLine();
    String sCost = sc.nextLine();
    String[] sSplitVal = sValue.split(" ");
    String[] sSplitCost = sCost.split(" ");
    int iResult = 0;
    for (int ii = 0; ii < iNum; ii++) {
      int iVal = Integer.parseInt(sSplitVal[ii]);
      int iCost = Integer.parseInt(sSplitCost[ii]);
      int iCalc = iVal - iCost;
      if (0 < iCalc) {
        iResult += iCalc;
      }
    }
    System.out.print(iResult);
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(final String[] args) {

    Scanner sc = new Scanner(System.in);
    int iNum = sc.nextInt();
    sc.nextLine();
    String sValue = sc.nextLine();
    String sCost = sc.nextLine();
    String[] sSplitVal = sValue.split(" ");
    String[] sSplitCost = sCost.split(" ");
    int iResult = 0;
    for (int ii = 0; ii < iNum; ii++) {
      int iVal = Integer.parseInt(sSplitVal[ii]);
      int iCost = Integer.parseInt(sSplitCost[ii]);
      int iCalc = iVal - iCost;
      if (0 < iCalc) {
        iResult += iCalc;
      }
    }
    System.out.print(iResult);
  }
} Main public static void main(final String[] args) {

    Scanner sc = new Scanner(System.in);
    int iNum = sc.nextInt();
    sc.nextLine();
    String sValue = sc.nextLine();
    String sCost = sc.nextLine();
    String[] sSplitVal = sValue.split(" ");
    String[] sSplitCost = sCost.split(" ");
    int iResult = 0;
    for (int ii = 0; ii < iNum; ii++) {
      int iVal = Integer.parseInt(sSplitVal[ii]);
      int iCost = Integer.parseInt(sSplitCost[ii]);
      int iCalc = iVal - iCost;
      if (0 < iCalc) {
        iResult += iCalc;
      }
    }
    System.out.print(iResult);
  } main {

    Scanner sc = new Scanner(System.in);
    int iNum = sc.nextInt();
    sc.nextLine();
    String sValue = sc.nextLine();
    String sCost = sc.nextLine();
    String[] sSplitVal = sValue.split(" ");
    String[] sSplitCost = sCost.split(" ");
    int iResult = 0;
    for (int ii = 0; ii < iNum; ii++) {
      int iVal = Integer.parseInt(sSplitVal[ii]);
      int iCost = Integer.parseInt(sSplitCost[ii]);
      int iCalc = iVal - iCost;
      if (0 < iCalc) {
        iResult += iCalc;
      }
    }
    System.out.print(iResult);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int iNum = sc.nextInt(); iNum sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc String sValue = sc.nextLine(); sValue sc.nextLine() sc.nextLine sc String sCost = sc.nextLine(); sCost sc.nextLine() sc.nextLine sc String[] sSplitVal = sValue.split(" "); sSplitVal sValue.split(" ") sValue.split sValue " " String[] sSplitCost = sCost.split(" "); sSplitCost sCost.split(" ") sCost.split sCost " " int iResult = 0; iResult 0 for (int ii = 0; ii < iNum; ii++) {
      int iVal = Integer.parseInt(sSplitVal[ii]);
      int iCost = Integer.parseInt(sSplitCost[ii]);
      int iCalc = iVal - iCost;
      if (0 < iCalc) {
        iResult += iCalc;
      }
    } int ii = 0; int ii = 0; ii 0 ii < iNum ii iNum ii++ ii++ ii {
      int iVal = Integer.parseInt(sSplitVal[ii]);
      int iCost = Integer.parseInt(sSplitCost[ii]);
      int iCalc = iVal - iCost;
      if (0 < iCalc) {
        iResult += iCalc;
      }
    } {
      int iVal = Integer.parseInt(sSplitVal[ii]);
      int iCost = Integer.parseInt(sSplitCost[ii]);
      int iCalc = iVal - iCost;
      if (0 < iCalc) {
        iResult += iCalc;
      }
    } int iVal = Integer.parseInt(sSplitVal[ii]); iVal Integer.parseInt(sSplitVal[ii]) Integer.parseInt Integer sSplitVal[ii] sSplitVal ii int iCost = Integer.parseInt(sSplitCost[ii]); iCost Integer.parseInt(sSplitCost[ii]) Integer.parseInt Integer sSplitCost[ii] sSplitCost ii int iCalc = iVal - iCost; iCalc iVal - iCost iVal iCost if (0 < iCalc) {
        iResult += iCalc;
      } 0 < iCalc 0 iCalc {
        iResult += iCalc;
      } iResult += iCalc iResult iCalc System.out.print(iResult) System.out.print System.out System System.out iResult final String[] args args public class Main {
  public static void main(final String[] args) {

    Scanner sc = new Scanner(System.in);
    int iNum = sc.nextInt();
    sc.nextLine();
    String sValue = sc.nextLine();
    String sCost = sc.nextLine();
    String[] sSplitVal = sValue.split(" ");
    String[] sSplitCost = sCost.split(" ");
    int iResult = 0;
    for (int ii = 0; ii < iNum; ii++) {
      int iVal = Integer.parseInt(sSplitVal[ii]);
      int iCost = Integer.parseInt(sSplitCost[ii]);
      int iCalc = iVal - iCost;
      if (0 < iCalc) {
        iResult += iCalc;
      }
    }
    System.out.print(iResult);
  }
} public class Main {
  public static void main(final String[] args) {

    Scanner sc = new Scanner(System.in);
    int iNum = sc.nextInt();
    sc.nextLine();
    String sValue = sc.nextLine();
    String sCost = sc.nextLine();
    String[] sSplitVal = sValue.split(" ");
    String[] sSplitCost = sCost.split(" ");
    int iResult = 0;
    for (int ii = 0; ii < iNum; ii++) {
      int iVal = Integer.parseInt(sSplitVal[ii]);
      int iCost = Integer.parseInt(sSplitCost[ii]);
      int iCalc = iVal - iCost;
      if (0 < iCalc) {
        iResult += iCalc;
      }
    }
    System.out.print(iResult);
  }
} Main
import java.util.Scanner;

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

    Scanner sc = new Scanner(System.in);
    int iNum = sc.nextInt();
    sc.nextLine();
    String sValue = sc.nextLine();
    String sCost = sc.nextLine();
    String[] sSplitVal = sValue.split(" ");
    String[] sSplitCost = sCost.split(" ");
    int iResult = 0;
    for (int ii = 0; ii < iNum; ii++) {
      int iVal = Integer.parseInt(sSplitVal[ii]);
      int iCost = Integer.parseInt(sSplitCost[ii]);
      int iCalc = iVal - iCost;
      if (0 < iCalc) {
        iResult += iCalc;
      }
    }
    System.out.print(iResult);
  }
}
