#include<stdio.h>
#include<string.h>

int snuke[200][2];
int main(){
	int n,k,i,j,num_belonger,bianhao,count=0;
  
  scanf("%d%d",&n,&k); 
  for(i=1;i<=k;i++)
  {
  	scanf("%d",&num_belonger);
  	for(j=1;j<=num_belonger;j++)
  	{
  		scanf("%d",&bianhao);
  		snuke[bianhao][0]=1;
	}
	
  }
  for(i=1;i<=n;i++){
  	if(snuke[i][0]==0) count++;
  }
  printf("%d",count);
return 0;
}
  