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

#define rep(i, n) for(int i = 0; i < n; ++i)
#define ifb(N, n) if(N & (1 << n))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
#define V [0x1000] 
#define AV = malloc(0x8000) 
#define VZ(v) memset(v, 0, 0x1000)
#define addv(a,b) a = (unsigned long long)a + (unsigned long long)b
#define assv(a,b) a = (unsigned long long)b
#define vi 0x7fffffffffffffff

typedef void * v;
typedef unsigned long long ull;

int main(void) {
    int n,k;

    v aa V;
    VZ(aa);
    scanf("%d %d", &n, &k);
    rep(i, k) {
        int d;
        scanf("%d", &d);
        rep(j, d) {
            int a;
            scanf("%d", &a);
            aa[a - 1] = 1;
        }
    }

    v ans = 0;
    rep(i, n) {
        if (!aa[i]) ++ans;
    }

    printf("%d", ans);
}