#include <stdio.h>

int main() {
	int n, k, d, a[105],check[105],count = 0;
	scanf("%d%d", &n, &k);
	for (int i = 0; i < k; k++) {
		scanf_s("%d", &d);
		for (int j = 0; j < d; j++) {
			scanf("%d", &a[j]);
			for (int l = 0; l < n; n++) {
				if (a[j] == (l + 1)) {
					check[l] = 1;
				}
 			}
		}
	}
	for (int m = 0; m < n; m++) {
		if (check[m] != 1)count += 1;
	}
	printf("%d", count);
	return 0;
}