#include <math.h>
#include <stdio.h>
#include <string.h>
int count = 0, idct[102] = {0}, k, n, ppl, temp;
int main(void) {
    scanf("%d %d", &n, &k);
    for (int i = 0; i < k; i++) {
        scanf("%d", &ppl);
        for (int j = 0; j < ppl; j++) {
            scanf("%d", &temp);
            idct[temp] = 1;
        }
    }
    for (int i = 1; i <= n; i++) {
        if (idct[i] == 0) {
            count++;
        }
    }
    printf("%d", count);
}