import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int vi[]=new int[n];
        int ci[]=new int[n];
        for(int i=0;i<n;i++)
        {
            vi[i]=sc.nextInt();
        }
        for(int i=0;i<n;i++)
        {
            ci[i]=sc.nextInt();
        }
        int x=0;
        int y=0;
        for(int i=0;i<n;i++)
        {
            if(vi[i]>ci[i])
            {
                x=x+vi[i];
                y+=ci[i];
            }
        }
        System.out.println(x-y);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int vi[]=new int[n];
        int ci[]=new int[n];
        for(int i=0;i<n;i++)
        {
            vi[i]=sc.nextInt();
        }
        for(int i=0;i<n;i++)
        {
            ci[i]=sc.nextInt();
        }
        int x=0;
        int y=0;
        for(int i=0;i<n;i++)
        {
            if(vi[i]>ci[i])
            {
                x=x+vi[i];
                y+=ci[i];
            }
        }
        System.out.println(x-y);
    }
} Main public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int vi[]=new int[n];
        int ci[]=new int[n];
        for(int i=0;i<n;i++)
        {
            vi[i]=sc.nextInt();
        }
        for(int i=0;i<n;i++)
        {
            ci[i]=sc.nextInt();
        }
        int x=0;
        int y=0;
        for(int i=0;i<n;i++)
        {
            if(vi[i]>ci[i])
            {
                x=x+vi[i];
                y+=ci[i];
            }
        }
        System.out.println(x-y);
    } main {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int vi[]=new int[n];
        int ci[]=new int[n];
        for(int i=0;i<n;i++)
        {
            vi[i]=sc.nextInt();
        }
        for(int i=0;i<n;i++)
        {
            ci[i]=sc.nextInt();
        }
        int x=0;
        int y=0;
        for(int i=0;i<n;i++)
        {
            if(vi[i]>ci[i])
            {
                x=x+vi[i];
                y+=ci[i];
            }
        }
        System.out.println(x-y);
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int vi[]=new int[n]; vi new int[n] n int ci[]=new int[n]; ci new int[n] n for(int i=0;i<n;i++)
        {
            vi[i]=sc.nextInt();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            vi[i]=sc.nextInt();
        } {
            vi[i]=sc.nextInt();
        } vi[i]=sc.nextInt() vi[i] vi i sc.nextInt() sc.nextInt sc for(int i=0;i<n;i++)
        {
            ci[i]=sc.nextInt();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            ci[i]=sc.nextInt();
        } {
            ci[i]=sc.nextInt();
        } ci[i]=sc.nextInt() ci[i] ci i sc.nextInt() sc.nextInt sc int x=0; x 0 int y=0; y 0 for(int i=0;i<n;i++)
        {
            if(vi[i]>ci[i])
            {
                x=x+vi[i];
                y+=ci[i];
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            if(vi[i]>ci[i])
            {
                x=x+vi[i];
                y+=ci[i];
            }
        } {
            if(vi[i]>ci[i])
            {
                x=x+vi[i];
                y+=ci[i];
            }
        } if(vi[i]>ci[i])
            {
                x=x+vi[i];
                y+=ci[i];
            } vi[i]>ci[i] vi[i] vi i ci[i] ci i {
                x=x+vi[i];
                y+=ci[i];
            } x=x+vi[i] x x+vi[i] x vi[i] vi i y+=ci[i] y ci[i] ci i System.out.println(x-y) System.out.println System.out System System.out x-y x y String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int vi[]=new int[n];
        int ci[]=new int[n];
        for(int i=0;i<n;i++)
        {
            vi[i]=sc.nextInt();
        }
        for(int i=0;i<n;i++)
        {
            ci[i]=sc.nextInt();
        }
        int x=0;
        int y=0;
        for(int i=0;i<n;i++)
        {
            if(vi[i]>ci[i])
            {
                x=x+vi[i];
                y+=ci[i];
            }
        }
        System.out.println(x-y);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int vi[]=new int[n];
        int ci[]=new int[n];
        for(int i=0;i<n;i++)
        {
            vi[i]=sc.nextInt();
        }
        for(int i=0;i<n;i++)
        {
            ci[i]=sc.nextInt();
        }
        int x=0;
        int y=0;
        for(int i=0;i<n;i++)
        {
            if(vi[i]>ci[i])
            {
                x=x+vi[i];
                y+=ci[i];
            }
        }
        System.out.println(x-y);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int vi[]=new int[n];
        int ci[]=new int[n];
        for(int i=0;i<n;i++)
        {
            vi[i]=sc.nextInt();
        }
        for(int i=0;i<n;i++)
        {
            ci[i]=sc.nextInt();
        }
        int x=0;
        int y=0;
        for(int i=0;i<n;i++)
        {
            if(vi[i]>ci[i])
            {
                x=x+vi[i];
                y+=ci[i];
            }
        }
        System.out.println(x-y);
    }
}
