#include <stdio.h>
int main()
{
  int n,k;
  scanf ("%d %d\n",&n,&k);
  
  int* arr = calloc (n+1,sizeof(int));
  arr[0] = 1;
  
  for (int i=0;i<k;i++)
  {
      int d,curr;
      scanf ("%d\n",&d);
      for (int j=0 ; j<d ; j++)
      {
          scanf ("%d ",&curr);
          arr[curr] = 1;
      }
      scanf ("\n");
  }
  
  int cnt=0;
  
  for (int i=1;i<n+1;i++)
  {
      if (arr[i] == 0) cnt++;
  }
  
  printf ("%d\n",cnt);
  return 0;
} 