#include <stdio.h>
#include <stdlib.h>
int main()
{
    int n, k;
    int snk[111] = {};
    scanf("%d %d", &n, &k);
    int d, a;
    for (int i = 0; i < k; i++)
    {
        scanf("%d", &d);
        for (int j = 0; j < d; j++)
        {
            scanf("%d", &a);
            snk[a] = 1;
        }
    }
    int ans = n;
    for (int i = 1; i <= n; i++)
    {
        if (snk[i] == 1)
        {
            ans--;
        }
    }
    printf("%d", ans);
    return 0;
}