#include <stdio.h>
int main()
{
  int N, K;
  int d;
  int buk[101];
  int temp;
  int i;
  int j;
  int counter = 0;
  for(i = 0; i < 101; ++i)
    buk[i] = 0;
  
  scanf("%d %d", &N, &K);
  for(i = 0; i < K; ++i){
    scanf("%d", &d);
    for(j = 0; j < d; ++j){
      scanf("%d", &temp);
      ++buk[temp - 1];
    }
  }
  
  for(i = 0; i < N; ++i){
    if(buk[i] == 0)
      ++counter;
  }
  printf("%d\n", counter);
  return 0;
}