#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
int main(int argc, char *argv[]){
        int People, Kind;
        scanf("%d %d", &People, &Kind);
        int i,j;
        int victim[1001];
        int tmp, index;
        int gaisha = 0;
        for(i = 0; i < 1001; i++){
                victim[i] = 0;
        }
        for(i = 0; i < Kind; i++){
                scanf("%d", &tmp);
                for(j = 0; j < tmp; j++){
                        scanf("%d", &index);
                        victim[index] = 1;
                }
        }
        for(i = 1; i < People;i++){
                if(victim[i] == 0){
                        gaisha++;
                }
        }
        printf("%d\n", gaisha);
        return 0;
}