import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner s=new Scanner(System.in);
		
		int n=s.nextInt();
		
		int val[]=new int[n];
		int cost[]=new int[n];
		
		for(int i=0;i<n;i++)
			val[i]=s.nextInt();
		
		for(int i=0;i<n;i++)
			cost[i]=s.nextInt();
		
		int ans=0;
		
		for(int i=0;i<n;i++)
			ans+=Integer.max(val[i]-cost[i], 0);
		
		System.out.println(ans);
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner s=new Scanner(System.in);
		
		int n=s.nextInt();
		
		int val[]=new int[n];
		int cost[]=new int[n];
		
		for(int i=0;i<n;i++)
			val[i]=s.nextInt();
		
		for(int i=0;i<n;i++)
			cost[i]=s.nextInt();
		
		int ans=0;
		
		for(int i=0;i<n;i++)
			ans+=Integer.max(val[i]-cost[i], 0);
		
		System.out.println(ans);
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner s=new Scanner(System.in);
		
		int n=s.nextInt();
		
		int val[]=new int[n];
		int cost[]=new int[n];
		
		for(int i=0;i<n;i++)
			val[i]=s.nextInt();
		
		for(int i=0;i<n;i++)
			cost[i]=s.nextInt();
		
		int ans=0;
		
		for(int i=0;i<n;i++)
			ans+=Integer.max(val[i]-cost[i], 0);
		
		System.out.println(ans);
	} main {
		// TODO Auto-generated method stub

		Scanner s=new Scanner(System.in);
		
		int n=s.nextInt();
		
		int val[]=new int[n];
		int cost[]=new int[n];
		
		for(int i=0;i<n;i++)
			val[i]=s.nextInt();
		
		for(int i=0;i<n;i++)
			cost[i]=s.nextInt();
		
		int ans=0;
		
		for(int i=0;i<n;i++)
			ans+=Integer.max(val[i]-cost[i], 0);
		
		System.out.println(ans);
	} Scanner s=new Scanner(System.in); s new Scanner(System.in) int n=s.nextInt(); n s.nextInt() s.nextInt s int val[]=new int[n]; val new int[n] n int cost[]=new int[n]; cost new int[n] n for(int i=0;i<n;i++)
			val[i]=s.nextInt(); int i=0; int i=0; i 0 i<n i n i++ i++ i val[i]=s.nextInt(); val[i]=s.nextInt() val[i] val i s.nextInt() s.nextInt s for(int i=0;i<n;i++)
			cost[i]=s.nextInt(); int i=0; int i=0; i 0 i<n i n i++ i++ i cost[i]=s.nextInt(); cost[i]=s.nextInt() cost[i] cost i s.nextInt() s.nextInt s int ans=0; ans 0 for(int i=0;i<n;i++)
			ans+=Integer.max(val[i]-cost[i], 0); int i=0; int i=0; i 0 i<n i n i++ i++ i ans+=Integer.max(val[i]-cost[i], 0); ans+=Integer.max(val[i]-cost[i], 0) ans Integer.max(val[i]-cost[i], 0) Integer.max Integer val[i]-cost[i] val[i] val i cost[i] cost i 0 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner s=new Scanner(System.in);
		
		int n=s.nextInt();
		
		int val[]=new int[n];
		int cost[]=new int[n];
		
		for(int i=0;i<n;i++)
			val[i]=s.nextInt();
		
		for(int i=0;i<n;i++)
			cost[i]=s.nextInt();
		
		int ans=0;
		
		for(int i=0;i<n;i++)
			ans+=Integer.max(val[i]-cost[i], 0);
		
		System.out.println(ans);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner s=new Scanner(System.in);
		
		int n=s.nextInt();
		
		int val[]=new int[n];
		int cost[]=new int[n];
		
		for(int i=0;i<n;i++)
			val[i]=s.nextInt();
		
		for(int i=0;i<n;i++)
			cost[i]=s.nextInt();
		
		int ans=0;
		
		for(int i=0;i<n;i++)
			ans+=Integer.max(val[i]-cost[i], 0);
		
		System.out.println(ans);
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner s=new Scanner(System.in);
		
		int n=s.nextInt();
		
		int val[]=new int[n];
		int cost[]=new int[n];
		
		for(int i=0;i<n;i++)
			val[i]=s.nextInt();
		
		for(int i=0;i<n;i++)
			cost[i]=s.nextInt();
		
		int ans=0;
		
		for(int i=0;i<n;i++)
			ans+=Integer.max(val[i]-cost[i], 0);
		
		System.out.println(ans);
	}

}
