#include <stdio.h>

int main(){
   int i,j,n,k,d,a[100],x,ans;
   char s[4];

   scanf("%d %d",&n,&k);
   for (i=0;i<n;i++) a[i]=0;
   for (i=0;i<k;i++) {
      scanf("%d",&d);
      for (j=0;j<d;j++) {
          scanf("%d",&x);
          a[x-1]++;
      }
   }
   for (ans=i=0;i<n;i++)
      if (a[i]==0) ans++;
   printf("%d\n",ans);
   return 0;
}
