#include <stdio.h>

int main(void)
{
    int i,j,N,K,d,a,t;
    int A[100];
    t = 0;
    scanf("%d%d",&N,&K);
    for(i = 1;i <= 100;i++){
        if(i <= N) A[i-1] = 0;
        else A[i-1] = 100; 
    }
    for(i = 1;i <= K;i++){
        scanf("%d",&d);
        for(j = 1;j <= d;j++){
            scanf("%d",&a);
            A[a - 1] = 100;
        }
    }
    for(i = 1;i <= N;i++){
        if(A[i-1] == 0) t++;
    }
    printf("%d\n",t);
	return 0;
}