#include <stdio.h>

int main(void){
    int n,k,count = 0,d,e;
    char  z[100];
    for(int i = 0; i < 100; i++){
        z[i] = 0;
    }
    scanf("%d %d",&n,&k);
    for(int i = 0; i < k; ++i){
        scanf("%d",&d);
        for(int j = 0; j < d; ++j){
            scanf("%d",&e);
            z[e] = 1;
        }
    }
    for(int i = 1; i <= n; ++i){
        if(z[i] == 0){
            count = count + 1;
        }
    }
    printf("%d",count);
    return 0;
}