#include<stdio.h>
#include<math.h>
#include<string.h>


int main() {
	int i, j, k;
	int m, n;
	int f = 0;
	int g = 0;
	int x[110] = {0};
	int a, b, c, d;


	scanf("%d %d", &n, &k);

	for (i = 0;i < k;i++) {
		scanf("%d", &d);
		for (j = 0;j < d;j++) {
			scanf("%d", &g);
			x[g]++;
		}
	}
	
	for (i = 1;i < n+1;i++) {
		if (x[i] == 0) {
			f++;
		}
	}

	printf("%d", f);

	return 0;
}