#include <stdio.h>

int main(void){

        int N,K;
        scanf("%d%d",&N,&K);//すぬけn人　お菓子k種類
        int d[K];
        int A[102][102];

        int count[102] = {0};

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

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