import java.util.Scanner;
public class Main {

		static void solve() {
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			int x = 0, y = 0;
			int array[][] = new int [2][n];
			for (int  i = 0;i<2;i++) {
				for(int j = 0;j<n;j++) {
					array[i][j] = sc.nextInt();
				}
			}
			for(int i = 0; i<n;i++) {
			if(array[0][i]>array[1][i]) {
				x+=array[0][i];
				y+=array[1][i];
			}
		}
			System.out.println(x-y);
			
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

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

		static void solve() {
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			int x = 0, y = 0;
			int array[][] = new int [2][n];
			for (int  i = 0;i<2;i++) {
				for(int j = 0;j<n;j++) {
					array[i][j] = sc.nextInt();
				}
			}
			for(int i = 0; i<n;i++) {
			if(array[0][i]>array[1][i]) {
				x+=array[0][i];
				y+=array[1][i];
			}
		}
			System.out.println(x-y);
			
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

} Main static void solve() {
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			int x = 0, y = 0;
			int array[][] = new int [2][n];
			for (int  i = 0;i<2;i++) {
				for(int j = 0;j<n;j++) {
					array[i][j] = sc.nextInt();
				}
			}
			for(int i = 0; i<n;i++) {
			if(array[0][i]>array[1][i]) {
				x+=array[0][i];
				y+=array[1][i];
			}
		}
			System.out.println(x-y);
			
			sc.close();
		} solve {
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			int x = 0, y = 0;
			int array[][] = new int [2][n];
			for (int  i = 0;i<2;i++) {
				for(int j = 0;j<n;j++) {
					array[i][j] = sc.nextInt();
				}
			}
			for(int i = 0; i<n;i++) {
			if(array[0][i]>array[1][i]) {
				x+=array[0][i];
				y+=array[1][i];
			}
		}
			System.out.println(x-y);
			
			sc.close();
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int x = 0 x 0 y = 0; y 0 int array[][] = new int [2][n]; array new int [2][n] 2 n for (int  i = 0;i<2;i++) {
				for(int j = 0;j<n;j++) {
					array[i][j] = sc.nextInt();
				}
			} int  i = 0; int  i = 0; i 0 i<2 i 2 i++ i++ i {
				for(int j = 0;j<n;j++) {
					array[i][j] = sc.nextInt();
				}
			} {
				for(int j = 0;j<n;j++) {
					array[i][j] = sc.nextInt();
				}
			} for(int j = 0;j<n;j++) {
					array[i][j] = sc.nextInt();
				} int j = 0; int j = 0; j 0 j<n j n j++ j++ j {
					array[i][j] = sc.nextInt();
				} {
					array[i][j] = sc.nextInt();
				} array[i][j] = sc.nextInt() array[i][j] array[i] array i j sc.nextInt() sc.nextInt sc for(int i = 0; i<n;i++) {
			if(array[0][i]>array[1][i]) {
				x+=array[0][i];
				y+=array[1][i];
			}
		} int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
			if(array[0][i]>array[1][i]) {
				x+=array[0][i];
				y+=array[1][i];
			}
		} {
			if(array[0][i]>array[1][i]) {
				x+=array[0][i];
				y+=array[1][i];
			}
		} if(array[0][i]>array[1][i]) {
				x+=array[0][i];
				y+=array[1][i];
			} array[0][i]>array[1][i] array[0][i] array[0] array 0 i array[1][i] array[1] array 1 i {
				x+=array[0][i];
				y+=array[1][i];
			} x+=array[0][i] x array[0][i] array[0] array 0 i y+=array[1][i] y array[1][i] array[1] array 1 i System.out.println(x-y) System.out.println System.out System System.out x-y x y sc.close() sc.close sc public static void main(String[] args) {
		solve();

	} main {
		solve();

	} solve() solve String[] args args public class Main {

		static void solve() {
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			int x = 0, y = 0;
			int array[][] = new int [2][n];
			for (int  i = 0;i<2;i++) {
				for(int j = 0;j<n;j++) {
					array[i][j] = sc.nextInt();
				}
			}
			for(int i = 0; i<n;i++) {
			if(array[0][i]>array[1][i]) {
				x+=array[0][i];
				y+=array[1][i];
			}
		}
			System.out.println(x-y);
			
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

} public class Main {

		static void solve() {
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			int x = 0, y = 0;
			int array[][] = new int [2][n];
			for (int  i = 0;i<2;i++) {
				for(int j = 0;j<n;j++) {
					array[i][j] = sc.nextInt();
				}
			}
			for(int i = 0; i<n;i++) {
			if(array[0][i]>array[1][i]) {
				x+=array[0][i];
				y+=array[1][i];
			}
		}
			System.out.println(x-y);
			
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

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

		static void solve() {
			Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			int x = 0, y = 0;
			int array[][] = new int [2][n];
			for (int  i = 0;i<2;i++) {
				for(int j = 0;j<n;j++) {
					array[i][j] = sc.nextInt();
				}
			}
			for(int i = 0; i<n;i++) {
			if(array[0][i]>array[1][i]) {
				x+=array[0][i];
				y+=array[1][i];
			}
		}
			System.out.println(x-y);
			
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

}
