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