#include<stdio.h>

int main(void) {
  int n, k;
  int* d;
  int** a;
  _Bool* hasOkashi;
  scanf("%d %d", &n, &k);
  int i, j;
  d = (int*)malloc(sizeof(int)*k);
  a = (int**)malloc(sizeof(int*)*k);
  hasOkashi = (_Bool*)malloc(sizeof(_Bool)*n);
  for(i=0; i<k; i++) {
    scanf("%d", &d[i]);
    a[i] = (int*)malloc(sizeof(int)*d[i]);
    for(j=0; j<d[i]; j++) {
      scanf("%d", &(a[i][j]));
      hasOkashi[a[i][j]-1] = 1;
    }
  }
  int count=0;
  for(i=0; i<n; i++) {
    if(hasOkashi[i] == 0) {
      count++;
    }
  }
  printf("%d\n", count);
  return 0;
}
