#include<stdio.h>

int main(void)
{
    int n,k,d;
    scanf("%d %d",&n,&k);

    int s[n];
    int flag[n];
    for (int i=0;i<n;i++){
        flag[i]=0;
    }

    for (int i=0;i<k;i++){
        scanf("%d",&d);
        for (int j=0;j<d;j++){
            scanf("%d",&s[j]);
            flag[s[j]-1]=1;
        }
    }

    int ans=0;

    for (int i=0;i<n;i++){
        // printf("flag[%d]=%d\n",i,flag[i]);
        if (flag[i]==0)
            ans=ans+1;
    }

    printf("%d\n",ans);

    return 0;
}