#include <stdio.h>

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

    printf("%d\n", x);
    return 0;
}