#include <stdio.h>
int main(void)
{
  int n, k;
  scanf("%d %d", &n, &k);
  int d[200];
  int flag[200] = {0};
  int a[200][200] = {0};
  int count = 0;
 
  for (int i = 0; i < k; i++)
  {
    scanf("%d", &d[i]);
    for (int j = 1; j <= d[i]; j++)
    {
      scanf("%d", &a[i][j]);
    }
  }
 
  for (int i = 0; i < k; i++)
  {
    for (int j = 1; j <= d[i]; j++)
    {
      if (a[i][j] != 0)
      {
        flag[a[i][j]] = 1;
      }
    }
  }
 
  for (int i = 1; i <= n; i++)
  {
    if (flag[i] == 0)
    {
      count++;
    }
  }
 
 
  printf("%d\n", count);
  return 0;
}