#include<stdio.h>

int main(void)
{
   int n, k, d[100], a[100][100], i, f, x[100]={0}, z=0;

   scanf("%d%d",&n,&k);
   for(i=0;i<k;i++){
      scanf("%d",&d[i]);
      for(f=0;f<d[i];f++){
         scanf("%d",&a[i][f]);
         if(x[a[i][f]-1]==0)
            z++;
         x[a[i][f]-1]=1;
      }
   }

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