import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int n = stdIn.nextInt();
    int[] v = new int[n];
    int[] c = new int[n];

    for(int i = 0; i<n; i++) {
      v[i] = stdIn.nextInt();
    }

    for(int i = 0; i<n; i++) {
      c[i] = stdIn.nextInt();
    }

    int[] d = new int[n];
    for(int i = 0; i<n; i++) {
      d[i] = v[i] - c[i];
    }

    int ans = 0;
    for(int i = 0; i<n; i++) {
      if(d[i] > 0) {
        ans += d[i];
      }
    }
    System.out.println(ans);
  }
} import java.util.Scanner; Scanner java.util class Main {
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int n = stdIn.nextInt();
    int[] v = new int[n];
    int[] c = new int[n];

    for(int i = 0; i<n; i++) {
      v[i] = stdIn.nextInt();
    }

    for(int i = 0; i<n; i++) {
      c[i] = stdIn.nextInt();
    }

    int[] d = new int[n];
    for(int i = 0; i<n; i++) {
      d[i] = v[i] - c[i];
    }

    int ans = 0;
    for(int i = 0; i<n; i++) {
      if(d[i] > 0) {
        ans += d[i];
      }
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int n = stdIn.nextInt();
    int[] v = new int[n];
    int[] c = new int[n];

    for(int i = 0; i<n; i++) {
      v[i] = stdIn.nextInt();
    }

    for(int i = 0; i<n; i++) {
      c[i] = stdIn.nextInt();
    }

    int[] d = new int[n];
    for(int i = 0; i<n; i++) {
      d[i] = v[i] - c[i];
    }

    int ans = 0;
    for(int i = 0; i<n; i++) {
      if(d[i] > 0) {
        ans += d[i];
      }
    }
    System.out.println(ans);
  } main {
    Scanner stdIn = new Scanner(System.in);
    int n = stdIn.nextInt();
    int[] v = new int[n];
    int[] c = new int[n];

    for(int i = 0; i<n; i++) {
      v[i] = stdIn.nextInt();
    }

    for(int i = 0; i<n; i++) {
      c[i] = stdIn.nextInt();
    }

    int[] d = new int[n];
    for(int i = 0; i<n; i++) {
      d[i] = v[i] - c[i];
    }

    int ans = 0;
    for(int i = 0; i<n; i++) {
      if(d[i] > 0) {
        ans += d[i];
      }
    }
    System.out.println(ans);
  } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn int[] v = new int[n]; v new int[n] n int[] c = new int[n]; c new int[n] n for(int i = 0; i<n; i++) {
      v[i] = stdIn.nextInt();
    } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
      v[i] = stdIn.nextInt();
    } {
      v[i] = stdIn.nextInt();
    } v[i] = stdIn.nextInt() v[i] v i stdIn.nextInt() stdIn.nextInt stdIn for(int i = 0; i<n; i++) {
      c[i] = stdIn.nextInt();
    } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
      c[i] = stdIn.nextInt();
    } {
      c[i] = stdIn.nextInt();
    } c[i] = stdIn.nextInt() c[i] c i stdIn.nextInt() stdIn.nextInt stdIn int[] d = new int[n]; d new int[n] n for(int i = 0; i<n; i++) {
      d[i] = v[i] - c[i];
    } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
      d[i] = v[i] - c[i];
    } {
      d[i] = v[i] - c[i];
    } d[i] = v[i] - c[i] d[i] d i v[i] - c[i] v[i] v i c[i] c i int ans = 0; ans 0 for(int i = 0; i<n; i++) {
      if(d[i] > 0) {
        ans += d[i];
      }
    } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
      if(d[i] > 0) {
        ans += d[i];
      }
    } {
      if(d[i] > 0) {
        ans += d[i];
      }
    } if(d[i] > 0) {
        ans += d[i];
      } d[i] > 0 d[i] d i 0 {
        ans += d[i];
      } ans += d[i] ans d[i] d i System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int n = stdIn.nextInt();
    int[] v = new int[n];
    int[] c = new int[n];

    for(int i = 0; i<n; i++) {
      v[i] = stdIn.nextInt();
    }

    for(int i = 0; i<n; i++) {
      c[i] = stdIn.nextInt();
    }

    int[] d = new int[n];
    for(int i = 0; i<n; i++) {
      d[i] = v[i] - c[i];
    }

    int ans = 0;
    for(int i = 0; i<n; i++) {
      if(d[i] > 0) {
        ans += d[i];
      }
    }
    System.out.println(ans);
  }
}