#include<stdio.h>
int main ()
{
    int book[105]={0};
    int i,k,n;
    scanf("%d %d",&n,&k);
    while(k--)
    {
        scanf("%d",&i);
        int tmp;
        while(i--)
        {
            scanf("%d",&tmp);
            book[tmp]++;
        }
    }
    int sum=0;
    for(i=1;i<=n;i++)if(book[i]==0)sum++;
    printf("%d",sum);
    return 0;
}
