import java.util.Scanner;

/**
 * Main
 */
public class Main {

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

        int N = sc.nextInt();
        int K = sc.nextInt();
        int[] d = new int[K];
        int[] A = new int[N];
        int tmp;

        for(int i=0; i<K; i++){
            d[i] = sc.nextInt();
            for(int j=0; j<d[i]; j++){
                tmp = sc.nextInt();
                A[tmp-1] = 1;
            }
        }

        int count = 0;
        for(int i=0; i<N; i++){
            if(A[i]==0){
                count++;
            }
        }
        System.out.println(count);
    }
} 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 K = sc.nextInt();
        int[] d = new int[K];
        int[] A = new int[N];
        int tmp;

        for(int i=0; i<K; i++){
            d[i] = sc.nextInt();
            for(int j=0; j<d[i]; j++){
                tmp = sc.nextInt();
                A[tmp-1] = 1;
            }
        }

        int count = 0;
        for(int i=0; i<N; i++){
            if(A[i]==0){
                count++;
            }
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int K = sc.nextInt();
        int[] d = new int[K];
        int[] A = new int[N];
        int tmp;

        for(int i=0; i<K; i++){
            d[i] = sc.nextInt();
            for(int j=0; j<d[i]; j++){
                tmp = sc.nextInt();
                A[tmp-1] = 1;
            }
        }

        int count = 0;
        for(int i=0; i<N; i++){
            if(A[i]==0){
                count++;
            }
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int K = sc.nextInt();
        int[] d = new int[K];
        int[] A = new int[N];
        int tmp;

        for(int i=0; i<K; i++){
            d[i] = sc.nextInt();
            for(int j=0; j<d[i]; j++){
                tmp = sc.nextInt();
                A[tmp-1] = 1;
            }
        }

        int count = 0;
        for(int i=0; i<N; i++){
            if(A[i]==0){
                count++;
            }
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc int[] d = new int[K]; d new int[K] K int[] A = new int[N]; A new int[N] N int tmp; tmp for(int i=0; i<K; i++){
            d[i] = sc.nextInt();
            for(int j=0; j<d[i]; j++){
                tmp = sc.nextInt();
                A[tmp-1] = 1;
            }
        } int i=0; int i=0; i 0 i<K i K i++ i++ i {
            d[i] = sc.nextInt();
            for(int j=0; j<d[i]; j++){
                tmp = sc.nextInt();
                A[tmp-1] = 1;
            }
        } {
            d[i] = sc.nextInt();
            for(int j=0; j<d[i]; j++){
                tmp = sc.nextInt();
                A[tmp-1] = 1;
            }
        } d[i] = sc.nextInt() d[i] d i sc.nextInt() sc.nextInt sc for(int j=0; j<d[i]; j++){
                tmp = sc.nextInt();
                A[tmp-1] = 1;
            } int j=0; int j=0; j 0 j<d[i] j d[i] d i j++ j++ j {
                tmp = sc.nextInt();
                A[tmp-1] = 1;
            } {
                tmp = sc.nextInt();
                A[tmp-1] = 1;
            } tmp = sc.nextInt() tmp sc.nextInt() sc.nextInt sc A[tmp-1] = 1 A[tmp-1] A tmp-1 tmp 1 1 int count = 0; count 0 for(int i=0; i<N; i++){
            if(A[i]==0){
                count++;
            }
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            if(A[i]==0){
                count++;
            }
        } {
            if(A[i]==0){
                count++;
            }
        } if(A[i]==0){
                count++;
            } A[i]==0 A[i] A i 0 {
                count++;
            } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

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

        int N = sc.nextInt();
        int K = sc.nextInt();
        int[] d = new int[K];
        int[] A = new int[N];
        int tmp;

        for(int i=0; i<K; i++){
            d[i] = sc.nextInt();
            for(int j=0; j<d[i]; j++){
                tmp = sc.nextInt();
                A[tmp-1] = 1;
            }
        }

        int count = 0;
        for(int i=0; i<N; i++){
            if(A[i]==0){
                count++;
            }
        }
        System.out.println(count);
    }
} public class Main {

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

        int N = sc.nextInt();
        int K = sc.nextInt();
        int[] d = new int[K];
        int[] A = new int[N];
        int tmp;

        for(int i=0; i<K; i++){
            d[i] = sc.nextInt();
            for(int j=0; j<d[i]; j++){
                tmp = sc.nextInt();
                A[tmp-1] = 1;
            }
        }

        int count = 0;
        for(int i=0; i<N; i++){
            if(A[i]==0){
                count++;
            }
        }
        System.out.println(count);
    }
} Main
import java.util.Scanner;

/**
 * Main
 */
public class Main {

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

        int N = sc.nextInt();
        int K = sc.nextInt();
        int[] d = new int[K];
        int[] A = new int[N];
        int tmp;

        for(int i=0; i<K; i++){
            d[i] = sc.nextInt();
            for(int j=0; j<d[i]; j++){
                tmp = sc.nextInt();
                A[tmp-1] = 1;
            }
        }

        int count = 0;
        for(int i=0; i<N; i++){
            if(A[i]==0){
                count++;
            }
        }
        System.out.println(count);
    }
}