import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 配列数の決定
		int number = sc.nextInt();
		
		//LeftNumberの決定
		int LeftNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 LeftNumber[i] = sc.nextInt();
		}
		
		//RightNumberの決定
		int RightNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 RightNumber[i] = sc.nextInt();
		}
		
		
		//引き算の結果を受けて加算していく
		int Sum = 0;
		int sa = 0;
		for(int i = 0; i < number; i++) {
			sa =  LeftNumber[i] -  RightNumber[i];
			if(sa > 0){
				Sum = Sum + sa;
			}
		}
		
		// 出力
		System.out.println(Sum);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 配列数の決定
		int number = sc.nextInt();
		
		//LeftNumberの決定
		int LeftNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 LeftNumber[i] = sc.nextInt();
		}
		
		//RightNumberの決定
		int RightNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 RightNumber[i] = sc.nextInt();
		}
		
		
		//引き算の結果を受けて加算していく
		int Sum = 0;
		int sa = 0;
		for(int i = 0; i < number; i++) {
			sa =  LeftNumber[i] -  RightNumber[i];
			if(sa > 0){
				Sum = Sum + sa;
			}
		}
		
		// 出力
		System.out.println(Sum);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 配列数の決定
		int number = sc.nextInt();
		
		//LeftNumberの決定
		int LeftNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 LeftNumber[i] = sc.nextInt();
		}
		
		//RightNumberの決定
		int RightNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 RightNumber[i] = sc.nextInt();
		}
		
		
		//引き算の結果を受けて加算していく
		int Sum = 0;
		int sa = 0;
		for(int i = 0; i < number; i++) {
			sa =  LeftNumber[i] -  RightNumber[i];
			if(sa > 0){
				Sum = Sum + sa;
			}
		}
		
		// 出力
		System.out.println(Sum);
	} main {
		Scanner sc = new Scanner(System.in);
		// 配列数の決定
		int number = sc.nextInt();
		
		//LeftNumberの決定
		int LeftNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 LeftNumber[i] = sc.nextInt();
		}
		
		//RightNumberの決定
		int RightNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 RightNumber[i] = sc.nextInt();
		}
		
		
		//引き算の結果を受けて加算していく
		int Sum = 0;
		int sa = 0;
		for(int i = 0; i < number; i++) {
			sa =  LeftNumber[i] -  RightNumber[i];
			if(sa > 0){
				Sum = Sum + sa;
			}
		}
		
		// 出力
		System.out.println(Sum);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int number = sc.nextInt(); number sc.nextInt() sc.nextInt sc int LeftNumber[] = new int[number]; LeftNumber new int[number] number for(int i = 0; i < number; i++) {
			 LeftNumber[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < number i number i++ i++ i {
			 LeftNumber[i] = sc.nextInt();
		} {
			 LeftNumber[i] = sc.nextInt();
		} LeftNumber[i] = sc.nextInt() LeftNumber[i] LeftNumber i sc.nextInt() sc.nextInt sc int RightNumber[] = new int[number]; RightNumber new int[number] number for(int i = 0; i < number; i++) {
			 RightNumber[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < number i number i++ i++ i {
			 RightNumber[i] = sc.nextInt();
		} {
			 RightNumber[i] = sc.nextInt();
		} RightNumber[i] = sc.nextInt() RightNumber[i] RightNumber i sc.nextInt() sc.nextInt sc int Sum = 0; Sum 0 int sa = 0; sa 0 for(int i = 0; i < number; i++) {
			sa =  LeftNumber[i] -  RightNumber[i];
			if(sa > 0){
				Sum = Sum + sa;
			}
		} int i = 0; int i = 0; i 0 i < number i number i++ i++ i {
			sa =  LeftNumber[i] -  RightNumber[i];
			if(sa > 0){
				Sum = Sum + sa;
			}
		} {
			sa =  LeftNumber[i] -  RightNumber[i];
			if(sa > 0){
				Sum = Sum + sa;
			}
		} sa =  LeftNumber[i] -  RightNumber[i] sa LeftNumber[i] -  RightNumber[i] LeftNumber[i] LeftNumber i RightNumber[i] RightNumber i if(sa > 0){
				Sum = Sum + sa;
			} sa > 0 sa 0 {
				Sum = Sum + sa;
			} Sum = Sum + sa Sum Sum + sa Sum sa System.out.println(Sum) System.out.println System.out System System.out Sum String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 配列数の決定
		int number = sc.nextInt();
		
		//LeftNumberの決定
		int LeftNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 LeftNumber[i] = sc.nextInt();
		}
		
		//RightNumberの決定
		int RightNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 RightNumber[i] = sc.nextInt();
		}
		
		
		//引き算の結果を受けて加算していく
		int Sum = 0;
		int sa = 0;
		for(int i = 0; i < number; i++) {
			sa =  LeftNumber[i] -  RightNumber[i];
			if(sa > 0){
				Sum = Sum + sa;
			}
		}
		
		// 出力
		System.out.println(Sum);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 配列数の決定
		int number = sc.nextInt();
		
		//LeftNumberの決定
		int LeftNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 LeftNumber[i] = sc.nextInt();
		}
		
		//RightNumberの決定
		int RightNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 RightNumber[i] = sc.nextInt();
		}
		
		
		//引き算の結果を受けて加算していく
		int Sum = 0;
		int sa = 0;
		for(int i = 0; i < number; i++) {
			sa =  LeftNumber[i] -  RightNumber[i];
			if(sa > 0){
				Sum = Sum + sa;
			}
		}
		
		// 出力
		System.out.println(Sum);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 配列数の決定
		int number = sc.nextInt();
		
		//LeftNumberの決定
		int LeftNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 LeftNumber[i] = sc.nextInt();
		}
		
		//RightNumberの決定
		int RightNumber[] = new int[number];
		for(int i = 0; i < number; i++) {
			 RightNumber[i] = sc.nextInt();
		}
		
		
		//引き算の結果を受けて加算していく
		int Sum = 0;
		int sa = 0;
		for(int i = 0; i < number; i++) {
			sa =  LeftNumber[i] -  RightNumber[i];
			if(sa > 0){
				Sum = Sum + sa;
			}
		}
		
		// 出力
		System.out.println(Sum);
	}
}