#include <stdio.h>

int main(void)
{
  int i, j, n, k, d[100], a[100], m[100] = {0}, result = 0;
  
  scanf("%d %d", &n, &k);
  

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