#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define yes "Yes\n"
#define no "No\n"
int m,n;
int i,j,k,l;
int a[100][100],b,c,d[100],e,f,g;
//int sum,total;
//long long int ;
//float ;
//double ;
//char a[101],b[101],s[101],t[101],u[101];
int main(void){
    scanf("%d %d", &n, &k);
    for (size_t i = 0; i < k; i++) {
        scanf("%d", &e);
        for (size_t j = 0; j < e; j++) {
            scanf("%d", &b);
            d[b-1]++;
        }
        
    }
    for (size_t i = 0; i < n; i++)
    {
        if (d[i] == 0)
        {
            c++;
        }
    }
    printf("%d\n", c);
    return 0;
}