import java.util.*;
 public class Main
{
    public static void main(String[]args)
    {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());
        StringTokenizer dates=new StringTokenizer(sc.nextLine());
        StringTokenizer dates2=new StringTokenizer(sc.nextLine());
        int mayor=0;
        for(int i = 0; i < N; i++)
        {
            int a = Integer.parseInt(dates.nextToken());
            int b = Integer.parseInt(dates2.nextToken());
            if(a-b > 0)
            {
                mayor+= a-b;
            }
        }
        System.out.println(mayor);
  }
} import java.util.*; util.* java public class Main
{
    public static void main(String[]args)
    {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());
        StringTokenizer dates=new StringTokenizer(sc.nextLine());
        StringTokenizer dates2=new StringTokenizer(sc.nextLine());
        int mayor=0;
        for(int i = 0; i < N; i++)
        {
            int a = Integer.parseInt(dates.nextToken());
            int b = Integer.parseInt(dates2.nextToken());
            if(a-b > 0)
            {
                mayor+= a-b;
            }
        }
        System.out.println(mayor);
  }
} Main public static void main(String[]args)
    {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());
        StringTokenizer dates=new StringTokenizer(sc.nextLine());
        StringTokenizer dates2=new StringTokenizer(sc.nextLine());
        int mayor=0;
        for(int i = 0; i < N; i++)
        {
            int a = Integer.parseInt(dates.nextToken());
            int b = Integer.parseInt(dates2.nextToken());
            if(a-b > 0)
            {
                mayor+= a-b;
            }
        }
        System.out.println(mayor);
  } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());
        StringTokenizer dates=new StringTokenizer(sc.nextLine());
        StringTokenizer dates2=new StringTokenizer(sc.nextLine());
        int mayor=0;
        for(int i = 0; i < N; i++)
        {
            int a = Integer.parseInt(dates.nextToken());
            int b = Integer.parseInt(dates2.nextToken());
            if(a-b > 0)
            {
                mayor+= a-b;
            }
        }
        System.out.println(mayor);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.nextLine()); N Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc StringTokenizer dates=new StringTokenizer(sc.nextLine()); dates new StringTokenizer(sc.nextLine()) StringTokenizer dates2=new StringTokenizer(sc.nextLine()); dates2 new StringTokenizer(sc.nextLine()) int mayor=0; mayor 0 for(int i = 0; i < N; i++)
        {
            int a = Integer.parseInt(dates.nextToken());
            int b = Integer.parseInt(dates2.nextToken());
            if(a-b > 0)
            {
                mayor+= a-b;
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            int a = Integer.parseInt(dates.nextToken());
            int b = Integer.parseInt(dates2.nextToken());
            if(a-b > 0)
            {
                mayor+= a-b;
            }
        } {
            int a = Integer.parseInt(dates.nextToken());
            int b = Integer.parseInt(dates2.nextToken());
            if(a-b > 0)
            {
                mayor+= a-b;
            }
        } int a = Integer.parseInt(dates.nextToken()); a Integer.parseInt(dates.nextToken()) Integer.parseInt Integer dates.nextToken() dates.nextToken dates int b = Integer.parseInt(dates2.nextToken()); b Integer.parseInt(dates2.nextToken()) Integer.parseInt Integer dates2.nextToken() dates2.nextToken dates2 if(a-b > 0)
            {
                mayor+= a-b;
            } a-b > 0 a-b a b 0 {
                mayor+= a-b;
            } mayor+= a-b mayor a-b a b System.out.println(mayor) System.out.println System.out System System.out mayor String[]args args public class Main
{
    public static void main(String[]args)
    {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());
        StringTokenizer dates=new StringTokenizer(sc.nextLine());
        StringTokenizer dates2=new StringTokenizer(sc.nextLine());
        int mayor=0;
        for(int i = 0; i < N; i++)
        {
            int a = Integer.parseInt(dates.nextToken());
            int b = Integer.parseInt(dates2.nextToken());
            if(a-b > 0)
            {
                mayor+= a-b;
            }
        }
        System.out.println(mayor);
  }
} public class Main
{
    public static void main(String[]args)
    {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());
        StringTokenizer dates=new StringTokenizer(sc.nextLine());
        StringTokenizer dates2=new StringTokenizer(sc.nextLine());
        int mayor=0;
        for(int i = 0; i < N; i++)
        {
            int a = Integer.parseInt(dates.nextToken());
            int b = Integer.parseInt(dates2.nextToken());
            if(a-b > 0)
            {
                mayor+= a-b;
            }
        }
        System.out.println(mayor);
  }
} Main
import java.util.*;
 public class Main
{
    public static void main(String[]args)
    {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.nextLine());
        StringTokenizer dates=new StringTokenizer(sc.nextLine());
        StringTokenizer dates2=new StringTokenizer(sc.nextLine());
        int mayor=0;
        for(int i = 0; i < N; i++)
        {
            int a = Integer.parseInt(dates.nextToken());
            int b = Integer.parseInt(dates2.nextToken());
            if(a-b > 0)
            {
                mayor+= a-b;
            }
        }
        System.out.println(mayor);
  }
}