#include<stdio.h>

int NnumberSunuke, KkindOfOkashi;
int NoSunuke[100];

int okashi;
int tempSunuke;

int answer = 0;

int main(void){

    for(int index=0; index<100; index++){
        NoSunuke[index] = 1;
    }

    scanf("%d%d", &NnumberSunuke, &KkindOfOkashi);

    for(int i=0; i<KkindOfOkashi; i++){
        scanf("%d", &okashi);
        for(int j=0; j<okashi; j++){
            scanf("%d", &tempSunuke);
            NoSunuke[tempSunuke-1] = 0;
        }
    }


    for(int index=0; index<NnumberSunuke; index++){
        answer += NoSunuke[index];
    }

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

    return 0;
}