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

int main(void)
{
    int N;
    int K;
    int d;
    int *A;
    int *ans;
    int count = 0;
    int b;
    int c;
    scanf("%d", &N);
    scanf("%d", &K);
    ans = (int *)malloc(sizeof(int) * (N + 1));
    ans[0] = 0;
    for (c = 1; c <= N; ++c)
    {
        ans[c] = 1;
    }
    for (b = 0; b < K; ++b)
    {
        scanf("%d", &d);
        A = (int *)malloc(sizeof(int) * d);
        for (c = 0; c < d; ++c)
        {
            scanf("%d", A + c);
            ans[A[c]] = 0;
        }
        free(A);
    }
    for (b = 1; b <= N; ++b)
    {
        if (ans[b] != 0)
        {
            ++count;
        }
    }
    printf("%d", count);
    return 0;
}