#include <stdio.h>

int main(void){

    int N = 0;
    int K = 0;
    int d = 0;
    int count = 0;
    scanf("%d %d", &N, &K);

    int S[100] = {0};
    int A[K][N];
    for (int i = 0; i < K; i++){
        scanf("%d", &d);
        for (int j = 0; j < d; j++){
            scanf("%d", &A[i][j]);
            S[A[i][j] - 1] = 1;
        }
    }

    for (int k = 0; k < N; k++){
        if (S[k] == 0){
            count++;
        }
    }
    printf("%d\n", count);

    return 0;
}