#include <stdio.h>

int main(void) {
  int N, K;
  scanf("%d %d", &N, &K);
  int has[N];
  for (int n = 0; n < N; ++n) has[n] = 0;
  
  for (int i = 0; i < K; ++i) {
    int d;
    scanf("%d", &d);
    for (int di = 0; di < d; ++di) {
      int A;
      scanf("%d", &A);
      ++has[A - 1];
    }
  }
  
  int hasNothing = 0;
  for (int n = 0; n < N; ++n) {
    //fprintf(stderr, "has[%d] = %d\n", n, has[n]);
    if (has[n] == 0) ++hasNothing;
  }
  printf("%d\n", hasNothing);
  return 0;
}