#include<stdio.h>

int main(){
    int N,K;
    scanf("%d%d", &N, &K);

    int i,j; 
    int ans=0,a,d;
    int A[100+1] = {0};
    for( i = 1; i <= K; i++ ){
        scanf("%d", &d);
        for( j = 1; j <= d; j++ ){
            scanf("%d", &a);
            A[a] += 1;
        }
    }

    for( i = 1; i <= N; i++ ){
        if( A[i] == 0 ) ans++;
    }

    printf("%d\n", ans);

    return 0;
}

