#include<stdio.h>

int main(void) {
	int i, j, n, k, d, scan, ans = 0;
	int sunuke[100];

	for (i = 0; i < 99; ++i) {
		sunuke[i] = 0;
	}
	scanf("%d %d", &n, &k);
	for (i = 0; i < k; ++i) {
		scanf("%d", &d);
		for (j = 0; j < d; ++j) {
			scanf("%d", &scan);
			sunuke[scan]++;
		}
	}

	for (i = 1; i < n; ++i) {
		if (sunuke[i] == 0) {
			ans++;
		}
	}
	printf("%d", ans);
	return 0;
}