#include<stdio.h>

int main(void){

  int N,K,d[101],A[101][101],i,j,sweets[101] = {0},ans = 0;

  scanf("%d %d",&N,&K);
  for(i = 1;i <= K;i++){
    scanf("%d",&d[i]);
    for(j = 1;j <= d[i];j++){
      scanf("%d",&A[i][j]);
    }
  }

  for(i = 1;i <= K;i++){
    for(j = 1;j <= d[i];j++){
      sweets[A[i][j]]++;
      //printf("addSunuke:%d\n",A[i][j]);
    }
  }

  for(i = 1;i <= N;i++){
    if(sweets[i] == 0) ans++;
  }

  printf("%d\n",ans);
  return 0;
}
