import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int kind = sc.nextInt();
        int[] di = new int[kind];

        int[] count = new int[n];
        for(int i = 0; i<n; i++){
            count[i] = 0;
        }

        for(int i = 0; i<kind; i++){
            di[i] = sc.nextInt();
            for(int j = 0; j<di[i]; j++){
                count[sc.nextInt() - 1]++;
            }
        }

        int trickCount = 0;
        for(int i = 0; i<n; i++){
            if(count[i] == 0){
                trickCount++;
            }
        }

        System.out.println(trickCount);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int kind = sc.nextInt();
        int[] di = new int[kind];

        int[] count = new int[n];
        for(int i = 0; i<n; i++){
            count[i] = 0;
        }

        for(int i = 0; i<kind; i++){
            di[i] = sc.nextInt();
            for(int j = 0; j<di[i]; j++){
                count[sc.nextInt() - 1]++;
            }
        }

        int trickCount = 0;
        for(int i = 0; i<n; i++){
            if(count[i] == 0){
                trickCount++;
            }
        }

        System.out.println(trickCount);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int kind = sc.nextInt();
        int[] di = new int[kind];

        int[] count = new int[n];
        for(int i = 0; i<n; i++){
            count[i] = 0;
        }

        for(int i = 0; i<kind; i++){
            di[i] = sc.nextInt();
            for(int j = 0; j<di[i]; j++){
                count[sc.nextInt() - 1]++;
            }
        }

        int trickCount = 0;
        for(int i = 0; i<n; i++){
            if(count[i] == 0){
                trickCount++;
            }
        }

        System.out.println(trickCount);
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int kind = sc.nextInt();
        int[] di = new int[kind];

        int[] count = new int[n];
        for(int i = 0; i<n; i++){
            count[i] = 0;
        }

        for(int i = 0; i<kind; i++){
            di[i] = sc.nextInt();
            for(int j = 0; j<di[i]; j++){
                count[sc.nextInt() - 1]++;
            }
        }

        int trickCount = 0;
        for(int i = 0; i<n; i++){
            if(count[i] == 0){
                trickCount++;
            }
        }

        System.out.println(trickCount);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int kind = sc.nextInt(); kind sc.nextInt() sc.nextInt sc int[] di = new int[kind]; di new int[kind] kind int[] count = new int[n]; count new int[n] n for(int i = 0; i<n; i++){
            count[i] = 0;
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            count[i] = 0;
        } {
            count[i] = 0;
        } count[i] = 0 count[i] count i 0 for(int i = 0; i<kind; i++){
            di[i] = sc.nextInt();
            for(int j = 0; j<di[i]; j++){
                count[sc.nextInt() - 1]++;
            }
        } int i = 0; int i = 0; i 0 i<kind i kind i++ i++ i {
            di[i] = sc.nextInt();
            for(int j = 0; j<di[i]; j++){
                count[sc.nextInt() - 1]++;
            }
        } {
            di[i] = sc.nextInt();
            for(int j = 0; j<di[i]; j++){
                count[sc.nextInt() - 1]++;
            }
        } di[i] = sc.nextInt() di[i] di i sc.nextInt() sc.nextInt sc for(int j = 0; j<di[i]; j++){
                count[sc.nextInt() - 1]++;
            } int j = 0; int j = 0; j 0 j<di[i] j di[i] di i j++ j++ j {
                count[sc.nextInt() - 1]++;
            } {
                count[sc.nextInt() - 1]++;
            } count[sc.nextInt() - 1]++ count[sc.nextInt() - 1] count sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 int trickCount = 0; trickCount 0 for(int i = 0; i<n; i++){
            if(count[i] == 0){
                trickCount++;
            }
        } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
            if(count[i] == 0){
                trickCount++;
            }
        } {
            if(count[i] == 0){
                trickCount++;
            }
        } if(count[i] == 0){
                trickCount++;
            } count[i] == 0 count[i] count i 0 {
                trickCount++;
            } trickCount++ trickCount System.out.println(trickCount) System.out.println System.out System System.out trickCount String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int kind = sc.nextInt();
        int[] di = new int[kind];

        int[] count = new int[n];
        for(int i = 0; i<n; i++){
            count[i] = 0;
        }

        for(int i = 0; i<kind; i++){
            di[i] = sc.nextInt();
            for(int j = 0; j<di[i]; j++){
                count[sc.nextInt() - 1]++;
            }
        }

        int trickCount = 0;
        for(int i = 0; i<n; i++){
            if(count[i] == 0){
                trickCount++;
            }
        }

        System.out.println(trickCount);
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int kind = sc.nextInt();
        int[] di = new int[kind];

        int[] count = new int[n];
        for(int i = 0; i<n; i++){
            count[i] = 0;
        }

        for(int i = 0; i<kind; i++){
            di[i] = sc.nextInt();
            for(int j = 0; j<di[i]; j++){
                count[sc.nextInt() - 1]++;
            }
        }

        int trickCount = 0;
        for(int i = 0; i<n; i++){
            if(count[i] == 0){
                trickCount++;
            }
        }

        System.out.println(trickCount);
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int kind = sc.nextInt();
        int[] di = new int[kind];

        int[] count = new int[n];
        for(int i = 0; i<n; i++){
            count[i] = 0;
        }

        for(int i = 0; i<kind; i++){
            di[i] = sc.nextInt();
            for(int j = 0; j<di[i]; j++){
                count[sc.nextInt() - 1]++;
            }
        }

        int trickCount = 0;
        for(int i = 0; i<n; i++){
            if(count[i] == 0){
                trickCount++;
            }
        }

        System.out.println(trickCount);
    }
}