#include <stdio.h>

int main(void){
    int i,j,N,K,d,A[100] = {0},tmp,ans=0;
    scanf("%d %d",&N,&K);

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

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