#include<stdio.h>

int main(){
    int n,k;
    scanf("%d %d",&n,&k);

    int d[k],a[k][n];
    int ans[n];

    for(int i = 0;i < n;i++){
        ans[i] = 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]);
            if(ans[a[i][j]-1] == 0)ans[a[i][j]-1] = 1;
        }        
    }

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