#include <inttypes.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
    intmax_t N, K, d[100], A[100][100];
    intmax_t snuke_[100] = {};
    intmax_t ans = 0;

    scanf("%jd%jd", &N, &K);
    for (size_t i = 0; i < K; i++) {
        scanf("%jd", &d[i]);
        for (size_t j = 0; j < d[i]; j++) {
            scanf("%jd", &A[i][j]);
        }
    }

    for (size_t i = 0; i < K; i++) {
        for (size_t j = 0; j < d[i]; j++) {
            snuke_[A[i][j] - 1]++;
        }
    }

    for (size_t i = 0; i < N; i++) {
        if (snuke_[i] == 0)
            ans++;
    }

    printf("%jd\n", ans);

    return 0;
}
