#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define rep(i,k,n) for(int (i)=(k);(i)<(n);(i)++)
#define max(a,b) (a)>(b)?(a):(b)
#define min(a,b) (a)<(b)?(a):(b)
#define abs(a) (a)>0 ?(a):-(a)
#define llong long long

int main(){
	int N,K; scanf("%d %d",&N,&K);
	int flag[N]; rep(i,0,N) flag[i]=1;
	rep(i,0,K){
		int d; scanf("%d",&d);
		rep(j,0,d){
			int k; scanf("%d",&k);
			k--;
			flag[k]=0;
		}
	}
	int ans=0;
	rep(i,0,N){
		if( flag[i] ) ans++;
	}
	printf("%d",ans);
	return 0;
}
