import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main{
	
	public static void main(String[] args)
	{
		new Main().run();
	}
	
	public void run()
	{
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] a = new int[N];
		int[] b = new int[N];
		int ans = 0;
		for(int i = 0;i<N;i++)
			a[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			b[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			ans += Math.max(0,a[i]-b[i]);
		System.out.println(ans);
	}
	
} import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main{
	
	public static void main(String[] args)
	{
		new Main().run();
	}
	
	public void run()
	{
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] a = new int[N];
		int[] b = new int[N];
		int ans = 0;
		for(int i = 0;i<N;i++)
			a[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			b[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			ans += Math.max(0,a[i]-b[i]);
		System.out.println(ans);
	}
	
} Main public static void main(String[] args)
	{
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public void run()
	{
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] a = new int[N];
		int[] b = new int[N];
		int ans = 0;
		for(int i = 0;i<N;i++)
			a[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			b[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			ans += Math.max(0,a[i]-b[i]);
		System.out.println(ans);
	} run {
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] a = new int[N];
		int[] b = new int[N];
		int ans = 0;
		for(int i = 0;i<N;i++)
			a[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			b[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			ans += Math.max(0,a[i]-b[i]);
		System.out.println(ans);
	} Scanner file = new Scanner(System.in); file new Scanner(System.in) int N = file.nextInt(); N file.nextInt() file.nextInt file int[] a = new int[N]; a new int[N] N int[] b = new int[N]; b new int[N] N int ans = 0; ans 0 for(int i = 0;i<N;i++)
			a[i] = file.nextInt(); int i = 0; int i = 0; i 0 i<N i N i++ i++ i a[i] = file.nextInt(); a[i] = file.nextInt() a[i] a i file.nextInt() file.nextInt file for(int i = 0;i<N;i++)
			b[i] = file.nextInt(); int i = 0; int i = 0; i 0 i<N i N i++ i++ i b[i] = file.nextInt(); b[i] = file.nextInt() b[i] b i file.nextInt() file.nextInt file for(int i = 0;i<N;i++)
			ans += Math.max(0,a[i]-b[i]); int i = 0; int i = 0; i 0 i<N i N i++ i++ i ans += Math.max(0,a[i]-b[i]); ans += Math.max(0,a[i]-b[i]) ans Math.max(0,a[i]-b[i]) Math.max Math 0 a[i]-b[i] a[i] a i b[i] b i System.out.println(ans) System.out.println System.out System System.out ans public class Main{
	
	public static void main(String[] args)
	{
		new Main().run();
	}
	
	public void run()
	{
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] a = new int[N];
		int[] b = new int[N];
		int ans = 0;
		for(int i = 0;i<N;i++)
			a[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			b[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			ans += Math.max(0,a[i]-b[i]);
		System.out.println(ans);
	}
	
} public class Main{
	
	public static void main(String[] args)
	{
		new Main().run();
	}
	
	public void run()
	{
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] a = new int[N];
		int[] b = new int[N];
		int ans = 0;
		for(int i = 0;i<N;i++)
			a[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			b[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			ans += Math.max(0,a[i]-b[i]);
		System.out.println(ans);
	}
	
} Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main{
	
	public static void main(String[] args)
	{
		new Main().run();
	}
	
	public void run()
	{
		Scanner file = new Scanner(System.in);
		int N = file.nextInt();
		int[] a = new int[N];
		int[] b = new int[N];
		int ans = 0;
		for(int i = 0;i<N;i++)
			a[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			b[i] = file.nextInt();
		for(int i = 0;i<N;i++)
			ans += Math.max(0,a[i]-b[i]);
		System.out.println(ans);
	}
	
}
