#include <stdio.h>
#include <stdlib.h>


int main()
{
  int N , K;
 scanf("%d %d",&N,&K);
 int array[N+1];
 memset(array,0,sizeof(array[0])*(N+1));
 int d[K];
 for (int i = 0;i<K;i++)
 {
 	scanf("%d",&d[i]);
 	int A[d[i]];
    for (int j = 0;j<d[i];j++)
	{
	  scanf("%d",&A[j]);
	  array[A[j]]++;
	}
 }

 int count=0;
 for (int i=1;i<=N;i++)
 {
   if (array[i]==0)
	count++;
 }

 printf("%d",count);




   return 0;
}
