#include <stdio.h>

int a[101] = {0}, s;

int main() {
    int n, k, d, t;
    scanf("%d %d", &n, &k);
    for (int i = 0; i < k; i++) {
        scanf("%d", &d);
        for (int j = 0; j < d; j++) {
            scanf("%d", &t);
            a[t] = 1;
        }
    }
    for (int i = 1; i <= n; i++)
        if (!a[i]) s++;
    printf("%d", s);
    return 0;
}