#include<stdio.h>

int vis[105];
int main()
{
	int n, k,ans=0;
	scanf("%d%d", &n, &k);
	while (k--)
	{
		int d;
		scanf("%d", &d);
		for (int i = 0; i < d; i++)
		{
			int tmp;
			scanf("%d", &tmp);
			vis[tmp] = 1;
		}
	}
	for (int i = 1; i <= n; i++)
	{
		if (vis[i] == 0)
			ans++;
	}
	printf("%d", ans);
}