import java.util.*;
public class Main{
    public static Scanner scan  = new Scanner(System.in);
    public static void main(String[]args){
        int n,k;
        int di;

        Set<Integer> h_set = new HashSet<Integer>();

        n=nextInt();
        k=nextInt();
        for(int i=0;i<k;i++){
            di =nextInt();
            for(int j = 0;j<di;j++){
                h_set.add(nextInt());
            }
        }
        print(n-h_set.size());
    }



    public static int nextInt(){
        return Integer.parseInt(scan.next());
    }
    public static long nextLong(){
        return Long.parseLong(scan.next());
    }
    public static String next(){
        return scan.next();
    }
    public static double nextDouble(){
        return Double.parseDouble(scan.next());
    }
    public static float nextFloat(){
        return Float.parseFloat(scan.next());
    }

    //Yes or No
    public static void yesNo(boolean flag){
        if(flag) System.out.println("Yes");
        else System.out.println("No");
    }
    public static void print(Object a){
        System.out.println(a);
    }
} import java.util.*; util.* java public class Main{
    public static Scanner scan  = new Scanner(System.in);
    public static void main(String[]args){
        int n,k;
        int di;

        Set<Integer> h_set = new HashSet<Integer>();

        n=nextInt();
        k=nextInt();
        for(int i=0;i<k;i++){
            di =nextInt();
            for(int j = 0;j<di;j++){
                h_set.add(nextInt());
            }
        }
        print(n-h_set.size());
    }



    public static int nextInt(){
        return Integer.parseInt(scan.next());
    }
    public static long nextLong(){
        return Long.parseLong(scan.next());
    }
    public static String next(){
        return scan.next();
    }
    public static double nextDouble(){
        return Double.parseDouble(scan.next());
    }
    public static float nextFloat(){
        return Float.parseFloat(scan.next());
    }

    //Yes or No
    public static void yesNo(boolean flag){
        if(flag) System.out.println("Yes");
        else System.out.println("No");
    }
    public static void print(Object a){
        System.out.println(a);
    }
} Main public static Scanner scan  = new Scanner(System.in); scan new Scanner(System.in) public static void main(String[]args){
        int n,k;
        int di;

        Set<Integer> h_set = new HashSet<Integer>();

        n=nextInt();
        k=nextInt();
        for(int i=0;i<k;i++){
            di =nextInt();
            for(int j = 0;j<di;j++){
                h_set.add(nextInt());
            }
        }
        print(n-h_set.size());
    } main {
        int n,k;
        int di;

        Set<Integer> h_set = new HashSet<Integer>();

        n=nextInt();
        k=nextInt();
        for(int i=0;i<k;i++){
            di =nextInt();
            for(int j = 0;j<di;j++){
                h_set.add(nextInt());
            }
        }
        print(n-h_set.size());
    } int n n k; k int di; di Set<Integer> h_set = new HashSet<Integer>(); h_set new HashSet<Integer>() n=nextInt() n nextInt() nextInt k=nextInt() k nextInt() nextInt for(int i=0;i<k;i++){
            di =nextInt();
            for(int j = 0;j<di;j++){
                h_set.add(nextInt());
            }
        } int i=0; int i=0; i 0 i<k i k i++ i++ i {
            di =nextInt();
            for(int j = 0;j<di;j++){
                h_set.add(nextInt());
            }
        } {
            di =nextInt();
            for(int j = 0;j<di;j++){
                h_set.add(nextInt());
            }
        } di =nextInt() di nextInt() nextInt for(int j = 0;j<di;j++){
                h_set.add(nextInt());
            } int j = 0; int j = 0; j 0 j<di j di j++ j++ j {
                h_set.add(nextInt());
            } {
                h_set.add(nextInt());
            } h_set.add(nextInt()) h_set.add h_set nextInt() nextInt print(n-h_set.size()) print n-h_set.size() n h_set.size() h_set.size h_set String[]args args public static int nextInt(){
        return Integer.parseInt(scan.next());
    } nextInt {
        return Integer.parseInt(scan.next());
    } return Integer.parseInt(scan.next()); Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan public static long nextLong(){
        return Long.parseLong(scan.next());
    } nextLong {
        return Long.parseLong(scan.next());
    } return Long.parseLong(scan.next()); Long.parseLong(scan.next()) Long.parseLong Long scan.next() scan.next scan public static String next(){
        return scan.next();
    } next {
        return scan.next();
    } return scan.next(); scan.next() scan.next scan public static double nextDouble(){
        return Double.parseDouble(scan.next());
    } nextDouble {
        return Double.parseDouble(scan.next());
    } return Double.parseDouble(scan.next()); Double.parseDouble(scan.next()) Double.parseDouble Double scan.next() scan.next scan public static float nextFloat(){
        return Float.parseFloat(scan.next());
    } nextFloat {
        return Float.parseFloat(scan.next());
    } return Float.parseFloat(scan.next()); Float.parseFloat(scan.next()) Float.parseFloat Float scan.next() scan.next scan //Yes or No
    public static void yesNo(boolean flag){
        if(flag) System.out.println("Yes");
        else System.out.println("No");
    } yesNo {
        if(flag) System.out.println("Yes");
        else System.out.println("No");
    } if(flag) System.out.println("Yes");
        else System.out.println("No"); flag System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" boolean flag flag public static void print(Object a){
        System.out.println(a);
    } print {
        System.out.println(a);
    } System.out.println(a) System.out.println System.out System System.out a Object a a public class Main{
    public static Scanner scan  = new Scanner(System.in);
    public static void main(String[]args){
        int n,k;
        int di;

        Set<Integer> h_set = new HashSet<Integer>();

        n=nextInt();
        k=nextInt();
        for(int i=0;i<k;i++){
            di =nextInt();
            for(int j = 0;j<di;j++){
                h_set.add(nextInt());
            }
        }
        print(n-h_set.size());
    }



    public static int nextInt(){
        return Integer.parseInt(scan.next());
    }
    public static long nextLong(){
        return Long.parseLong(scan.next());
    }
    public static String next(){
        return scan.next();
    }
    public static double nextDouble(){
        return Double.parseDouble(scan.next());
    }
    public static float nextFloat(){
        return Float.parseFloat(scan.next());
    }

    //Yes or No
    public static void yesNo(boolean flag){
        if(flag) System.out.println("Yes");
        else System.out.println("No");
    }
    public static void print(Object a){
        System.out.println(a);
    }
} public class Main{
    public static Scanner scan  = new Scanner(System.in);
    public static void main(String[]args){
        int n,k;
        int di;

        Set<Integer> h_set = new HashSet<Integer>();

        n=nextInt();
        k=nextInt();
        for(int i=0;i<k;i++){
            di =nextInt();
            for(int j = 0;j<di;j++){
                h_set.add(nextInt());
            }
        }
        print(n-h_set.size());
    }



    public static int nextInt(){
        return Integer.parseInt(scan.next());
    }
    public static long nextLong(){
        return Long.parseLong(scan.next());
    }
    public static String next(){
        return scan.next();
    }
    public static double nextDouble(){
        return Double.parseDouble(scan.next());
    }
    public static float nextFloat(){
        return Float.parseFloat(scan.next());
    }

    //Yes or No
    public static void yesNo(boolean flag){
        if(flag) System.out.println("Yes");
        else System.out.println("No");
    }
    public static void print(Object a){
        System.out.println(a);
    }
} Main
import java.util.*;
public class Main{
    public static Scanner scan  = new Scanner(System.in);
    public static void main(String[]args){
        int n,k;
        int di;

        Set<Integer> h_set = new HashSet<Integer>();

        n=nextInt();
        k=nextInt();
        for(int i=0;i<k;i++){
            di =nextInt();
            for(int j = 0;j<di;j++){
                h_set.add(nextInt());
            }
        }
        print(n-h_set.size());
    }



    public static int nextInt(){
        return Integer.parseInt(scan.next());
    }
    public static long nextLong(){
        return Long.parseLong(scan.next());
    }
    public static String next(){
        return scan.next();
    }
    public static double nextDouble(){
        return Double.parseDouble(scan.next());
    }
    public static float nextFloat(){
        return Float.parseFloat(scan.next());
    }

    //Yes or No
    public static void yesNo(boolean flag){
        if(flag) System.out.println("Yes");
        else System.out.println("No");
    }
    public static void print(Object a){
        System.out.println(a);
    }
}