#include <stdio.h>

int main() 
{

    int ninzu, syurui;
    int sunuke[101] = {0};
    int goukei;
    int tmp;
    scanf("%d %d", &ninzu, &syurui);

    for (int i = 0; i < syurui; i++ ) {
        scanf("%d", &goukei);
        for ( int j = 0; j < goukei; j++ ){
            scanf("%d", &tmp);
            sunuke[tmp-1]++;
        }
    }

    tmp = 0;
    for ( int i = 0; i < ninzu; i++ ){
        if ( sunuke[i] == 0 ){
            tmp++;
        }
    }
    printf("%d", tmp);

    return 0;
}

