#include <stdio.h>
 

int main(){
  int n = 0, k = 0;
  int a[ 101 ] = {0};
  int c = 100;
  scanf( "%d %d", &n, &k );
  c = n;
  int i = 1;
  for ( i = 1; i < k + 1; i++ ){
    int d = 0;
    scanf( "%d", &d );
    
    int j = 1;
    for ( j = 1; j < d + 1; j++ ){
      int ai = 0;
      scanf( "%d", &ai );
      a[ ai ]++;
      if ( a[ ai ] == 1 ){
        c--;
      }
    }
  }

  printf("%d\n", c);

  return 0;
  
}
