#include<stdio.h>

int main(){
  int n = 0, k = 0;
  scanf("%d%k", &n, &k);
  int d[k] = {0};
  int N[n] = {0};
  for(int i=0; i < k; i++){
    scanf("%d", &d[i]);
    for(int j=0; j < d[i]; j++){
      int tmp = 0;
      scanf("%d", &tmp);
      N[tmp-1]++;
    }
  }
  int count = 0;
  for(int c=0; c < n; c++){
    if(N[c] == 0)	count++;
  }
  printf("%d", count);
  return 0;
}
