
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan =new Scanner(System.in);
        int gokei = Integer.parseInt(scan.nextLine());
        String[] kachiStr = scan.nextLine().split(" ");
        String[] costStr = scan.nextLine().split(" ");
        
        
        int answer = 0;
        for(int i = 0; i < gokei ; i++){
            int rieki = Integer.parseInt(kachiStr[i]) - Integer.parseInt(costStr[i]);
            if(rieki > 0 ){
                answer += rieki; 
            }
        }
        
        System.out.println(answer);

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

    public static void main(String[] args) {
        Scanner scan =new Scanner(System.in);
        int gokei = Integer.parseInt(scan.nextLine());
        String[] kachiStr = scan.nextLine().split(" ");
        String[] costStr = scan.nextLine().split(" ");
        
        
        int answer = 0;
        for(int i = 0; i < gokei ; i++){
            int rieki = Integer.parseInt(kachiStr[i]) - Integer.parseInt(costStr[i]);
            if(rieki > 0 ){
                answer += rieki; 
            }
        }
        
        System.out.println(answer);

    }
    
} Main public static void main(String[] args) {
        Scanner scan =new Scanner(System.in);
        int gokei = Integer.parseInt(scan.nextLine());
        String[] kachiStr = scan.nextLine().split(" ");
        String[] costStr = scan.nextLine().split(" ");
        
        
        int answer = 0;
        for(int i = 0; i < gokei ; i++){
            int rieki = Integer.parseInt(kachiStr[i]) - Integer.parseInt(costStr[i]);
            if(rieki > 0 ){
                answer += rieki; 
            }
        }
        
        System.out.println(answer);

    } main {
        Scanner scan =new Scanner(System.in);
        int gokei = Integer.parseInt(scan.nextLine());
        String[] kachiStr = scan.nextLine().split(" ");
        String[] costStr = scan.nextLine().split(" ");
        
        
        int answer = 0;
        for(int i = 0; i < gokei ; i++){
            int rieki = Integer.parseInt(kachiStr[i]) - Integer.parseInt(costStr[i]);
            if(rieki > 0 ){
                answer += rieki; 
            }
        }
        
        System.out.println(answer);

    } Scanner scan =new Scanner(System.in); scan new Scanner(System.in) int gokei = Integer.parseInt(scan.nextLine()); gokei Integer.parseInt(scan.nextLine()) Integer.parseInt Integer scan.nextLine() scan.nextLine scan String[] kachiStr = scan.nextLine().split(" "); kachiStr scan.nextLine().split(" ") scan.nextLine().split scan.nextLine() scan.nextLine scan " " String[] costStr = scan.nextLine().split(" "); costStr scan.nextLine().split(" ") scan.nextLine().split scan.nextLine() scan.nextLine scan " " int answer = 0; answer 0 for(int i = 0; i < gokei ; i++){
            int rieki = Integer.parseInt(kachiStr[i]) - Integer.parseInt(costStr[i]);
            if(rieki > 0 ){
                answer += rieki; 
            }
        } int i = 0; int i = 0; i 0 i < gokei i gokei i++ i++ i {
            int rieki = Integer.parseInt(kachiStr[i]) - Integer.parseInt(costStr[i]);
            if(rieki > 0 ){
                answer += rieki; 
            }
        } {
            int rieki = Integer.parseInt(kachiStr[i]) - Integer.parseInt(costStr[i]);
            if(rieki > 0 ){
                answer += rieki; 
            }
        } int rieki = Integer.parseInt(kachiStr[i]) - Integer.parseInt(costStr[i]); rieki Integer.parseInt(kachiStr[i]) - Integer.parseInt(costStr[i]) Integer.parseInt(kachiStr[i]) Integer.parseInt Integer kachiStr[i] kachiStr i Integer.parseInt(costStr[i]) Integer.parseInt Integer costStr[i] costStr i if(rieki > 0 ){
                answer += rieki; 
            } rieki > 0 rieki 0 {
                answer += rieki; 
            } answer += rieki answer rieki System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scan =new Scanner(System.in);
        int gokei = Integer.parseInt(scan.nextLine());
        String[] kachiStr = scan.nextLine().split(" ");
        String[] costStr = scan.nextLine().split(" ");
        
        
        int answer = 0;
        for(int i = 0; i < gokei ; i++){
            int rieki = Integer.parseInt(kachiStr[i]) - Integer.parseInt(costStr[i]);
            if(rieki > 0 ){
                answer += rieki; 
            }
        }
        
        System.out.println(answer);

    }
    
} public class Main {

    public static void main(String[] args) {
        Scanner scan =new Scanner(System.in);
        int gokei = Integer.parseInt(scan.nextLine());
        String[] kachiStr = scan.nextLine().split(" ");
        String[] costStr = scan.nextLine().split(" ");
        
        
        int answer = 0;
        for(int i = 0; i < gokei ; i++){
            int rieki = Integer.parseInt(kachiStr[i]) - Integer.parseInt(costStr[i]);
            if(rieki > 0 ){
                answer += rieki; 
            }
        }
        
        System.out.println(answer);

    }
    
} Main

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan =new Scanner(System.in);
        int gokei = Integer.parseInt(scan.nextLine());
        String[] kachiStr = scan.nextLine().split(" ");
        String[] costStr = scan.nextLine().split(" ");
        
        
        int answer = 0;
        for(int i = 0; i < gokei ; i++){
            int rieki = Integer.parseInt(kachiStr[i]) - Integer.parseInt(costStr[i]);
            if(rieki > 0 ){
                answer += rieki; 
            }
        }
        
        System.out.println(answer);

    }
    
}
