#include <stdio.h>
//#include <math.h>
#define MIN(x,y) (((x) > (y)) ? (y) : (x))
#define ABS(x) ((x) >= 0 ? (x) : (-(x)))
int A[101];
int main() {
  int n, k;
  scanf("%d%d", &n, &k);
  for (int i = 0; i < k; i++) {
    int d;
    scanf("%d", &d);
    for (int j = 0; j < d; j++) {
      int a;
      scanf("%d", &a);
      A[a] = 1;
    }
  }
  int sum = 0;
  for (int i = 1; i <= n; i++) {
    if (A[i] == 0) {
      sum++;
    }
  }
  printf("%d", sum);
  return 0;
}