#include <stdio.h>
#include <math.h>
int main(void)
{
    int N, K;
    scanf("%i %i", &N, &K);

    int num_of_sweets[100] = {0};

    for (int i = 1; i <= K; i++)
    {
        int d;
        scanf("%i", &d);
        for (int j = 1; j <= d; j++)
        {
            int tmp;
            scanf("%i", &tmp);
            num_of_sweets[tmp - 1]++;
        }
    }
    int sum = 0;
    for (int i = 1; i <= N; i++)
    {
        if (num_of_sweets[i - 1] == 0)
        {
            sum++;
        }
    }
    printf("%i\n", sum);
}