#include <stdio.h>
#define ll long long

int main(void) {
	int N, K;
	scanf("%d%d", &N, &K);
	int A[101] = {0};

	for (int i = 0; i < K; i++) {
		int d;
		scanf("%d", &d);
		for (int j = 0; j < d; j++) {
			int a;
			scanf("%d", &a);
			A[a] = 1;
		}
	}

	int ans = 0;
	for (int i = 1; i <= N; i++) {
		if (!A[i]) ans++;
	}
	printf("%d\n", ans);
	return 0;
}
