#include <stdio.h>
#include <string.h>

int main() {

    int n, k;
    scanf("%d %d", &n, &k);

    int arr[n];

    for (int i = 0; i < n; i++) {
        arr[i] = 0;
    }

    int d, a;
    for (int j = 0; j < k * 2; j += 2) {
        scanf("%d", &d);
        for (int k = 0; k < d; k++) {
            scanf("%d", &a);
            arr[a - 1] = 1;
        }
    }
    int cnt = 0;

    for (int l = 0; l < n; l++) {
        if (arr[l] == 1) {
            cnt++;
        }
    }

    printf("%d", n - cnt);

    return 0;
} 