#include <stdio.h>

#define rep(i,n) for(int i=0;i<(int)(n);i++)

int main(){
  int i, j, n, k, answer=0;
  scanf("%d%d",&n,&k);
  int d[k], a[k][n], ans[n];
  rep(i,n) ans[i]=0;
  rep(i,k) {
    scanf("%d",&d[i]);
    rep(j,d[i]) {
      scanf("%d",&a[i][j]);
      if(ans[a[i][j]-1]==0) ans[a[i][j]-1]++;
    }
  }
  rep(i,n) if(ans[i]==0) answer++;
  printf("%d",answer);
}