#include <stdio.h>
#include <stdlib.h>

int main(int argc, char const *argv[])
{
    int i, j, d, x, n, k;
    int *sunuke;

    scanf("%d", &n);
    scanf("%d", &k);
    sunuke = (int*)malloc(sizeof(int) * n);
    for(i = 0; i < n; ++i) sunuke[i] = 0;
    
    for(i = 0; i < k; ++i) {
        scanf("%d", &d);
        for(j = 0; j < d; ++j) {
            scanf("%d", &x);
            sunuke[x-1] = 1;
        }
    }

    int noOkashi = 0;

    for(i = 0; i < n; ++i) {
        if(!sunuke[i]) noOkashi++;
    }
    printf("%d", noOkashi);
    return 0;
}
