#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++)
#define rep(i,n)Rep(i,0,n)
typedef long long ll;
typedef long double ld;
#define Ma(x,y) ((x)>(y)?(x):(y))
#define mi(x,y) ((x)<(y)?(x):(y))

int main() {
	int n, k, d, A,a[101] = {0},ans=0;
	scanf("%d %d",&n,&k);
	rep(i, k) {
		scanf("%d", &d);
		rep(j, d) {
			scanf("%d", &A);
			a[A]++;
		}
	}
	Rep(i, 1, n + 1) {
		if (a[i] == 0)ans++;
	}
	printf("%d", ans);
}