#include <stdio.h>

int main()
{
    int n, k, a[101] = {0}, count = 0;

    scanf("%d %d", &n, &k);
    for (int i = 0; i < k; i++)
    {
        int d;
        scanf("%d", &d);
        for (int j = 0; j < d; j++)
        {
            int a_;
            scanf("%d", &a_);
            a[a_ - 1]++;
        }
    }
    for (int i = 0; i < n; i++)
    {
        if (a[i] == 0)
            count++;
    }

    printf("%d", count);
    return 0;
}