#include<stdio.h>
int main(void){
int i,j,n,k,count=0;
int a[100],d[100],ans[100]={};
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[j]);
ans[a[j]]=1;
}
}
for(i=1; i<=n;i++)
if(ans[i]==0){
count++;
}
printf("%d\n",count);
return 0;
}