#include<stdio.h>
#include<stdlib.h>
int main()
{
	int n,k,i,data;
	scanf("%d %d",&n,&k);
	int arr[n+1];
	while(k>0)
	{
		scanf("%d",&i);
		while(i>0)
		{
			scanf("%d",&data);
			arr[data]=data;
			i--;
		}
		k--;
	}
	k=0;
	for(i=1;i<=n;++i)
	{
		if(!arr[i])
			k++;
	}
	printf("%d\n",k);
	return 0;
}
	
