#include <stdio.h>

#define N_MAX 100

int main(void)
{
  int N;
  int K;
  int K_count;
  int i;
  int j;
  int l;
  int Treat_count;
  int Trick_count;
  int Treat_Num;
  
  int Trick_flg[N_MAX];
  int di[N_MAX];
  int Treat[N_MAX][N_MAX];
  
  scanf("%d %d",&N,&K);
  
  if(N >= 1 && N <= 100 && K >= 1 && K <= 100)
  {
    for(K_count = 0; K_count < K; K_count++)
    {
      scanf("%d",&di[K_count]);
      
      for(i = 0; i < di[K_count]; i++)
      {
        scanf("%d",&Treat[K_count][i]);
        Treat_Num = Treat[K_count][i] -1;
        Trick_flg[Treat_Num] = 1;
      }
      
    }
    for(j = 0; j < N;j++)
    {
      Treat_count += Trick_flg[j];
    }
    Trick_count = N - Treat_count;
    printf("%d",Trick_count);
  }
  return 0;
}