#include<stdio.h>

#define rep(i,a,b) for(int i = a; i <= b;i++)

int main(void){
  int n,k; scanf("%d%d",&n,&k);
  int sunuke[n]; rep(i,0,n-1){sunuke[i] = 0;}

  rep(i,1,k){
    int d; scanf("%d",&d);
    int a[d];
    rep(j,0,d-1){
      scanf("%d",&a[j]);
      sunuke[a[j]-1] ++;
    }
  }

  int cnt = 0;
  rep(i,0,n-1){
    if(sunuke[i] == 0){
      cnt ++;
    }
  }
  printf("%d",cnt);
  return 0;
}
