#include <stdio.h>

#define int64 long long

int main()
{
  int64 nn, kk;
  scanf("%lld %lld", &nn, &kk);
  int64 aa[nn], dd, tmp;
  for(int64 ii = 0;ii < nn;ii++)
  {
    aa[ii] = 1;
  }
  for(int64 ii = 0;ii < kk;ii++)
  {
    scanf("%lld", &dd);
    for(int64 jj = 0;jj < dd;jj++)
    {
      scanf("%lld", &tmp);
      aa[tmp - 1] = 0;
    }
  }
  int64 ans = 0;
  for(int64 ii = 0;ii < nn;ii++)
  {
    if(aa[ii])
    {
      ans++;
    }
  }
  printf("%lld\n", ans);
  return 0;
}