#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main(void)
{
    int n, k, i, j, d, da;
    int count = 0;
    int sn[101] = {0};

    scanf("%d %d", &n, &k);
    for (i = 0; i < k; i++)
    {
        scanf("%d", &d);
        for (j = 0; j < d; j++)
        {
            scanf("%d", &da);
            sn[da - 1] = 1;
        }
    }
    for (i = 0; i < n; i++)
    {
        if (sn[i] == 0)
            count++;
    }
    printf("%d\n", count);
    return 0;
}