#include <stdio.h>

int main() {
    int num;
    int kind;
    int sweet_num;
    int cnt = 0;


    scanf("%d %d",&num,&kind);
    int sweet_have[num];

    for(int i = 0; i < kind; i++) {
        scanf("%d",&sweet_num);
        for(int j = 0; j < sweet_num; j++) {
            int num_num;
            scanf("%d",&num_num);
            sweet_have[num_num] = 1;
        }
    }

    for(int m = 0; m < num; m++) {
        if(sweet_have[m] == 0) {
            cnt++;
        }
    }

    printf("%d",cnt);

    return 0;
}