#include <stdio.h>

int main() {
    int pess, doce;
    scanf("%d %d", &pess, &doce);
    int marc[pess], snk, kd;
    
    for (int i = 0; i < pess; ++i)
        marc[i] = 0;
        
    for (int h = 0; h < doce; ++h){
        scanf("%d", &snk);
        for (int i = 0; i < snk; ++i){
            scanf("%d", &kd);
            
            marc[kd-1] = 1;
        }
    }
    int cont = 0;
    for (int i = 0; i < pess; ++i){
        if (marc[i] == 0)
            cont += 1;
    }
    
    printf("%d\n", cont);
    
    return 0;
}
