#include<stdio.h>

int main(void){
  int n,k,d,i,j,b,sum;
  int a[100];
  sum = 0;
  scanf("%d %d", &n, &k);
  for(i=0;i<n;i++){
    a[i] = 0;
  }
  for(i=0;i<k;i++){
    scanf("%d", &d);
    for(j=0;j<d;j++){
      scanf("%d",&b);
      a[b-1] = 1;
    }
  }
  for(i=0;i<n;i++){
    if(a[i] == 1)
      sum += 1;
  }
  printf("%d", n -sum);
  return 0;
}