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