#include<stdio.h>
int main(){
    int n,k,num,snuck,cnt=0,i;
    int snuck_true[105]={0};
    scanf("%d %d",&n,&k);
    while(k>0){
        scanf("%d",&num);
        while(num>0){
            scanf("%d",&snuck);
            snuck_true[snuck]=1;
            num--;
        }
        k--;
    }
    for(i=1;i<=n;i++){
        if(snuck_true[i]==0) cnt++;
    }
    printf("%d",cnt);
    return 0;
}