#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#define F(i,a,n) for(int i=a; i<n; i++)
#define INF 100000000000 // long only


int main(){
  int n,k;
  scanf("%d%d",&n,&k);
  int ans[n];
  F(i,0,n)ans[i]=1;
  F(i,0,k){
    int d;
    scanf("%d",&d);
    F(j,0,d){
      int tmp;
      scanf("%d",&tmp);
      ans[tmp-1]=0;
    }
  }
  int sum=0;
  F(i,0,n){
    if(ans[i]==1) sum++;
  }
  printf("%d\n",sum);
  return 0;
}