import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        boolean[] aaaaa = new boolean[scan.nextInt()];
        Arrays.fill(aaaaa,false);
        int k = scan.nextInt();
        for(;k>0;k--){
            int d = scan.nextInt();
            for(;d>0;d--){
                aaaaa[scan.nextInt()-1] = true;
            }
        }
        int aa = 0;
        for(boolean b:aaaaa){
            if(!b)aa++;
        }
        System.out.println(aa);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        boolean[] aaaaa = new boolean[scan.nextInt()];
        Arrays.fill(aaaaa,false);
        int k = scan.nextInt();
        for(;k>0;k--){
            int d = scan.nextInt();
            for(;d>0;d--){
                aaaaa[scan.nextInt()-1] = true;
            }
        }
        int aa = 0;
        for(boolean b:aaaaa){
            if(!b)aa++;
        }
        System.out.println(aa);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        boolean[] aaaaa = new boolean[scan.nextInt()];
        Arrays.fill(aaaaa,false);
        int k = scan.nextInt();
        for(;k>0;k--){
            int d = scan.nextInt();
            for(;d>0;d--){
                aaaaa[scan.nextInt()-1] = true;
            }
        }
        int aa = 0;
        for(boolean b:aaaaa){
            if(!b)aa++;
        }
        System.out.println(aa);
    } main {
        Scanner scan = new Scanner(System.in);
        boolean[] aaaaa = new boolean[scan.nextInt()];
        Arrays.fill(aaaaa,false);
        int k = scan.nextInt();
        for(;k>0;k--){
            int d = scan.nextInt();
            for(;d>0;d--){
                aaaaa[scan.nextInt()-1] = true;
            }
        }
        int aa = 0;
        for(boolean b:aaaaa){
            if(!b)aa++;
        }
        System.out.println(aa);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) boolean[] aaaaa = new boolean[scan.nextInt()]; aaaaa new boolean[scan.nextInt()] scan.nextInt() scan.nextInt scan Arrays.fill(aaaaa,false) Arrays.fill Arrays aaaaa false int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan for(;k>0;k--){
            int d = scan.nextInt();
            for(;d>0;d--){
                aaaaa[scan.nextInt()-1] = true;
            }
        } ; k>0 k 0 k-- k-- k {
            int d = scan.nextInt();
            for(;d>0;d--){
                aaaaa[scan.nextInt()-1] = true;
            }
        } {
            int d = scan.nextInt();
            for(;d>0;d--){
                aaaaa[scan.nextInt()-1] = true;
            }
        } int d = scan.nextInt(); d scan.nextInt() scan.nextInt scan for(;d>0;d--){
                aaaaa[scan.nextInt()-1] = true;
            } ; d>0 d 0 d-- d-- d {
                aaaaa[scan.nextInt()-1] = true;
            } {
                aaaaa[scan.nextInt()-1] = true;
            } aaaaa[scan.nextInt()-1] = true aaaaa[scan.nextInt()-1] aaaaa scan.nextInt()-1 scan.nextInt() scan.nextInt scan 1 true int aa = 0; aa 0 for(boolean b:aaaaa){
            if(!b)aa++;
        } boolean b aaaaa {
            if(!b)aa++;
        } {
            if(!b)aa++;
        } if(!b)aa++; !b b aa++ aa System.out.println(aa) System.out.println System.out System System.out aa String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        boolean[] aaaaa = new boolean[scan.nextInt()];
        Arrays.fill(aaaaa,false);
        int k = scan.nextInt();
        for(;k>0;k--){
            int d = scan.nextInt();
            for(;d>0;d--){
                aaaaa[scan.nextInt()-1] = true;
            }
        }
        int aa = 0;
        for(boolean b:aaaaa){
            if(!b)aa++;
        }
        System.out.println(aa);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        boolean[] aaaaa = new boolean[scan.nextInt()];
        Arrays.fill(aaaaa,false);
        int k = scan.nextInt();
        for(;k>0;k--){
            int d = scan.nextInt();
            for(;d>0;d--){
                aaaaa[scan.nextInt()-1] = true;
            }
        }
        int aa = 0;
        for(boolean b:aaaaa){
            if(!b)aa++;
        }
        System.out.println(aa);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        boolean[] aaaaa = new boolean[scan.nextInt()];
        Arrays.fill(aaaaa,false);
        int k = scan.nextInt();
        for(;k>0;k--){
            int d = scan.nextInt();
            for(;d>0;d--){
                aaaaa[scan.nextInt()-1] = true;
            }
        }
        int aa = 0;
        for(boolean b:aaaaa){
            if(!b)aa++;
        }
        System.out.println(aa);
    }
}