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

int main(){
    int N,K,ans=0;
    scanf("%d %d",&N,&K);
    int d[K],A[K][N];
    char flag[N];
    for(int i = 0;i<N;i++) flag[i] = 1;
    for(int i = 0;i<K;i++){
        scanf("%d",&d[i]);
        for(int j = 0;j<d[i];j++){
            scanf("%d",&A[i][j]);
            flag[A[i][j]-1] = 0;
        }
    }
    for(int i = 0;i<N;i++) ans += flag[i];
    printf("%d\n",ans);
    return 0;
}