#include <stdio.h>

int main(void){
    int n, k;
    int d[100], a[100][100];
    int sum = 0;
    int memo[100] = {0};

    scanf("%d %d", &n, &k);
    for(int i = 1; i <= k; ++i){
        scanf("%d", &d[i]);
        for(int j = 1; j <= d[i]; ++j){
            scanf("%d", &a[i][j]);
            memo[a[i][j]] = 1;
        }
    }

    for(int i = 1; i <= n; ++i) sum += memo[i];

    printf("%d\n", n - sum);

    return 0;
}