#include <stdio.h>
int main() {
	int n, k, d, a, s[100] = {0}, cnt = 0;
	scanf("%d%d", &n, &k);
	for (int i = 0; i < k; i++) {
		scanf("%d", &d);
		for (int j = 0; j < d; j++) {
			scanf("%d", &a);
			s[a - 1] = 1;
		}
	}
	for (int i = 0; i < n; i++) {
		if (s[i] == 0) {
			cnt++;
		}
	}
	printf("%d\n", cnt);
	return 0;
}