import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner scan = null;
        List<String> scanList = new ArrayList<String>();

        try {
            scan = new Scanner(System.in);
            while(scan.hasNext()){
                String str = scan.nextLine();
                scanList.add(str);
            }


        } finally {
            scan.close();
        }

        String strN = null;
        //N人リスト
        List<Integer> nList = new ArrayList<Integer>();

        // 読込
        int i = 0;
        for(String str : scanList) {
        // for(int i=0; i < scanList.size(); i++) {
            
            if(i == 0) {
                strN = str.substring(0, str.indexOf(" "));
                for(int k=0; k<Integer.valueOf(strN); k++) {
                    nList.add(k+1);
                }
            } else if (i != 0 && 0 == i % 2) {
                String[] sList = str.split(" ");
                for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                }
            }
            i++;
        }

        //結果
        System.out.println(nList.size());

    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) {
        Scanner scan = null;
        List<String> scanList = new ArrayList<String>();

        try {
            scan = new Scanner(System.in);
            while(scan.hasNext()){
                String str = scan.nextLine();
                scanList.add(str);
            }


        } finally {
            scan.close();
        }

        String strN = null;
        //N人リスト
        List<Integer> nList = new ArrayList<Integer>();

        // 読込
        int i = 0;
        for(String str : scanList) {
        // for(int i=0; i < scanList.size(); i++) {
            
            if(i == 0) {
                strN = str.substring(0, str.indexOf(" "));
                for(int k=0; k<Integer.valueOf(strN); k++) {
                    nList.add(k+1);
                }
            } else if (i != 0 && 0 == i % 2) {
                String[] sList = str.split(" ");
                for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                }
            }
            i++;
        }

        //結果
        System.out.println(nList.size());

    }
} Main public static void main(String args[]) {
        Scanner scan = null;
        List<String> scanList = new ArrayList<String>();

        try {
            scan = new Scanner(System.in);
            while(scan.hasNext()){
                String str = scan.nextLine();
                scanList.add(str);
            }


        } finally {
            scan.close();
        }

        String strN = null;
        //N人リスト
        List<Integer> nList = new ArrayList<Integer>();

        // 読込
        int i = 0;
        for(String str : scanList) {
        // for(int i=0; i < scanList.size(); i++) {
            
            if(i == 0) {
                strN = str.substring(0, str.indexOf(" "));
                for(int k=0; k<Integer.valueOf(strN); k++) {
                    nList.add(k+1);
                }
            } else if (i != 0 && 0 == i % 2) {
                String[] sList = str.split(" ");
                for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                }
            }
            i++;
        }

        //結果
        System.out.println(nList.size());

    } main {
        Scanner scan = null;
        List<String> scanList = new ArrayList<String>();

        try {
            scan = new Scanner(System.in);
            while(scan.hasNext()){
                String str = scan.nextLine();
                scanList.add(str);
            }


        } finally {
            scan.close();
        }

        String strN = null;
        //N人リスト
        List<Integer> nList = new ArrayList<Integer>();

        // 読込
        int i = 0;
        for(String str : scanList) {
        // for(int i=0; i < scanList.size(); i++) {
            
            if(i == 0) {
                strN = str.substring(0, str.indexOf(" "));
                for(int k=0; k<Integer.valueOf(strN); k++) {
                    nList.add(k+1);
                }
            } else if (i != 0 && 0 == i % 2) {
                String[] sList = str.split(" ");
                for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                }
            }
            i++;
        }

        //結果
        System.out.println(nList.size());

    } Scanner scan = null; scan null List<String> scanList = new ArrayList<String>(); scanList new ArrayList<String>() try {
            scan = new Scanner(System.in);
            while(scan.hasNext()){
                String str = scan.nextLine();
                scanList.add(str);
            }


        } finally {
            scan.close();
        } {
            scan.close();
        } scan.close() scan.close scan {
            scan = new Scanner(System.in);
            while(scan.hasNext()){
                String str = scan.nextLine();
                scanList.add(str);
            }


        } scan = new Scanner(System.in) scan new Scanner(System.in) while(scan.hasNext()){
                String str = scan.nextLine();
                scanList.add(str);
            } scan.hasNext() scan.hasNext scan {
                String str = scan.nextLine();
                scanList.add(str);
            } String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan scanList.add(str) scanList.add scanList str String strN = null; strN null List<Integer> nList = new ArrayList<Integer>(); nList new ArrayList<Integer>() int i = 0; i 0 for(String str : scanList) {
        // for(int i=0; i < scanList.size(); i++) {
            
            if(i == 0) {
                strN = str.substring(0, str.indexOf(" "));
                for(int k=0; k<Integer.valueOf(strN); k++) {
                    nList.add(k+1);
                }
            } else if (i != 0 && 0 == i % 2) {
                String[] sList = str.split(" ");
                for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                }
            }
            i++;
        } String str scanList {
        // for(int i=0; i < scanList.size(); i++) {
            
            if(i == 0) {
                strN = str.substring(0, str.indexOf(" "));
                for(int k=0; k<Integer.valueOf(strN); k++) {
                    nList.add(k+1);
                }
            } else if (i != 0 && 0 == i % 2) {
                String[] sList = str.split(" ");
                for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                }
            }
            i++;
        } {
        // for(int i=0; i < scanList.size(); i++) {
            
            if(i == 0) {
                strN = str.substring(0, str.indexOf(" "));
                for(int k=0; k<Integer.valueOf(strN); k++) {
                    nList.add(k+1);
                }
            } else if (i != 0 && 0 == i % 2) {
                String[] sList = str.split(" ");
                for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                }
            }
            i++;
        } if(i == 0) {
                strN = str.substring(0, str.indexOf(" "));
                for(int k=0; k<Integer.valueOf(strN); k++) {
                    nList.add(k+1);
                }
            } else if (i != 0 && 0 == i % 2) {
                String[] sList = str.split(" ");
                for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                }
            } i == 0 i 0 {
                strN = str.substring(0, str.indexOf(" "));
                for(int k=0; k<Integer.valueOf(strN); k++) {
                    nList.add(k+1);
                }
            } strN = str.substring(0, str.indexOf(" ")) strN str.substring(0, str.indexOf(" ")) str.substring str 0 str.indexOf(" ") str.indexOf str " " for(int k=0; k<Integer.valueOf(strN); k++) {
                    nList.add(k+1);
                } int k=0; int k=0; k 0 k<Integer.valueOf(strN) k Integer.valueOf(strN) Integer.valueOf Integer strN k++ k++ k {
                    nList.add(k+1);
                } {
                    nList.add(k+1);
                } nList.add(k+1) nList.add nList k+1 k 1 if (i != 0 && 0 == i % 2) {
                String[] sList = str.split(" ");
                for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                }
            } i != 0 && 0 == i % 2 i != 0 i 0 0 == i % 2 0 i % 2 i 2 {
                String[] sList = str.split(" ");
                for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                }
            } String[] sList = str.split(" "); sList str.split(" ") str.split str " " for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                } int j=0; int j=0; j 0 j<sList.length j sList.length sList sList.length j++ j++ j {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                } {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                } int targetInt = Integer.valueOf(sList[j]); targetInt Integer.valueOf(sList[j]) Integer.valueOf Integer sList[j] sList j if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    } nList.contains(targetInt) nList.contains nList targetInt {
                        nList.remove(nList.indexOf(targetInt));
                    } nList.remove(nList.indexOf(targetInt)) nList.remove nList nList.indexOf(targetInt) nList.indexOf nList targetInt i++ i System.out.println(nList.size()) System.out.println System.out System System.out nList.size() nList.size nList String args[] args public class Main {
    public static void main(String args[]) {
        Scanner scan = null;
        List<String> scanList = new ArrayList<String>();

        try {
            scan = new Scanner(System.in);
            while(scan.hasNext()){
                String str = scan.nextLine();
                scanList.add(str);
            }


        } finally {
            scan.close();
        }

        String strN = null;
        //N人リスト
        List<Integer> nList = new ArrayList<Integer>();

        // 読込
        int i = 0;
        for(String str : scanList) {
        // for(int i=0; i < scanList.size(); i++) {
            
            if(i == 0) {
                strN = str.substring(0, str.indexOf(" "));
                for(int k=0; k<Integer.valueOf(strN); k++) {
                    nList.add(k+1);
                }
            } else if (i != 0 && 0 == i % 2) {
                String[] sList = str.split(" ");
                for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                }
            }
            i++;
        }

        //結果
        System.out.println(nList.size());

    }
} public class Main {
    public static void main(String args[]) {
        Scanner scan = null;
        List<String> scanList = new ArrayList<String>();

        try {
            scan = new Scanner(System.in);
            while(scan.hasNext()){
                String str = scan.nextLine();
                scanList.add(str);
            }


        } finally {
            scan.close();
        }

        String strN = null;
        //N人リスト
        List<Integer> nList = new ArrayList<Integer>();

        // 読込
        int i = 0;
        for(String str : scanList) {
        // for(int i=0; i < scanList.size(); i++) {
            
            if(i == 0) {
                strN = str.substring(0, str.indexOf(" "));
                for(int k=0; k<Integer.valueOf(strN); k++) {
                    nList.add(k+1);
                }
            } else if (i != 0 && 0 == i % 2) {
                String[] sList = str.split(" ");
                for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                }
            }
            i++;
        }

        //結果
        System.out.println(nList.size());

    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner scan = null;
        List<String> scanList = new ArrayList<String>();

        try {
            scan = new Scanner(System.in);
            while(scan.hasNext()){
                String str = scan.nextLine();
                scanList.add(str);
            }


        } finally {
            scan.close();
        }

        String strN = null;
        //N人リスト
        List<Integer> nList = new ArrayList<Integer>();

        // 読込
        int i = 0;
        for(String str : scanList) {
        // for(int i=0; i < scanList.size(); i++) {
            
            if(i == 0) {
                strN = str.substring(0, str.indexOf(" "));
                for(int k=0; k<Integer.valueOf(strN); k++) {
                    nList.add(k+1);
                }
            } else if (i != 0 && 0 == i % 2) {
                String[] sList = str.split(" ");
                for(int j=0; j<sList.length; j++) {
                    int targetInt = Integer.valueOf(sList[j]);
                    if(nList.contains(targetInt)) {
                        nList.remove(nList.indexOf(targetInt));
                    }
                }
            }
            i++;
        }

        //結果
        System.out.println(nList.size());

    }
}
