#include <stdio.h>
#include <math.h>

int main (void)
{
    long sunuke[100] = {0};
    int i, j, n, k, d, m, ans = 0;

    scanf("%d %d", &n, &k);

    for (i = 0; i < k; i++) {
        scanf("%d", &d);
        for (j = 0; j < d; j++) {
            scanf("%d", &m);
            sunuke[m-1]++;
        }
    }

    for (i = 0; i < n; i++) {
        if (sunuke[i] == 0) ans++;
    }

    printf("%d", ans);

    return 0;
}

