#include <stdio.h>
#include <string.h>

int main(void)
{
    int N, K;
    int d[101];
    int A[101][101];
    int i, j;
    int count = 0;

    scanf("%d %d\n", &N, &K);
    int flag[N];
    memset(flag, 0, sizeof(flag));

    for (i = 0; i < K; i++) {
        scanf("%d\n", &d[i]);
        for (j = 0; j < d[i]; j++) {
            scanf("%d", &A[i][j]);
            flag[A[i][j]] = 1;
        }
    }
    for (i = 0; i < N; i++) {
        if (flag[i] == 0) {
            count++;
        }
    }
    printf("%d", count-1);

    return 0;
}