import java.util.Scanner;
import java.util.ArrayList;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
 
int N = scan.nextInt();
int K = scan.nextInt();
int TT[] = new int[N];
int i, j, e, d;
int count = 0;
  for (i = 0; i < K; i++){
    d = scan.nextInt();
      for(j = 0; j < d; j++){
        e = scan.nextInt();
        TT[e-1] = 1;
        }
   }

  for (i = 0; i < N; i++){
    if (TT[i] == 0){
    count += 1;
    }
    else{
    }
  }
  System.out.println(count);
 }
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
 
int N = scan.nextInt();
int K = scan.nextInt();
int TT[] = new int[N];
int i, j, e, d;
int count = 0;
  for (i = 0; i < K; i++){
    d = scan.nextInt();
      for(j = 0; j < d; j++){
        e = scan.nextInt();
        TT[e-1] = 1;
        }
   }

  for (i = 0; i < N; i++){
    if (TT[i] == 0){
    count += 1;
    }
    else{
    }
  }
  System.out.println(count);
 }
} Main public static void main(String[] args){
Scanner scan = new Scanner(System.in);
 
int N = scan.nextInt();
int K = scan.nextInt();
int TT[] = new int[N];
int i, j, e, d;
int count = 0;
  for (i = 0; i < K; i++){
    d = scan.nextInt();
      for(j = 0; j < d; j++){
        e = scan.nextInt();
        TT[e-1] = 1;
        }
   }

  for (i = 0; i < N; i++){
    if (TT[i] == 0){
    count += 1;
    }
    else{
    }
  }
  System.out.println(count);
 } main {
Scanner scan = new Scanner(System.in);
 
int N = scan.nextInt();
int K = scan.nextInt();
int TT[] = new int[N];
int i, j, e, d;
int count = 0;
  for (i = 0; i < K; i++){
    d = scan.nextInt();
      for(j = 0; j < d; j++){
        e = scan.nextInt();
        TT[e-1] = 1;
        }
   }

  for (i = 0; i < N; i++){
    if (TT[i] == 0){
    count += 1;
    }
    else{
    }
  }
  System.out.println(count);
 } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int K = scan.nextInt(); K scan.nextInt() scan.nextInt scan int TT[] = new int[N]; TT new int[N] N int i i j j e e d; d int count = 0; count 0 for (i = 0; i < K; i++){
    d = scan.nextInt();
      for(j = 0; j < d; j++){
        e = scan.nextInt();
        TT[e-1] = 1;
        }
   } i = 0; i = 0 i 0 i < K i K i++ i++ i {
    d = scan.nextInt();
      for(j = 0; j < d; j++){
        e = scan.nextInt();
        TT[e-1] = 1;
        }
   } {
    d = scan.nextInt();
      for(j = 0; j < d; j++){
        e = scan.nextInt();
        TT[e-1] = 1;
        }
   } d = scan.nextInt() d scan.nextInt() scan.nextInt scan for(j = 0; j < d; j++){
        e = scan.nextInt();
        TT[e-1] = 1;
        } j = 0; j = 0 j 0 j < d j d j++ j++ j {
        e = scan.nextInt();
        TT[e-1] = 1;
        } {
        e = scan.nextInt();
        TT[e-1] = 1;
        } e = scan.nextInt() e scan.nextInt() scan.nextInt scan TT[e-1] = 1 TT[e-1] TT e-1 e 1 1 for (i = 0; i < N; i++){
    if (TT[i] == 0){
    count += 1;
    }
    else{
    }
  } i = 0; i = 0 i 0 i < N i N i++ i++ i {
    if (TT[i] == 0){
    count += 1;
    }
    else{
    }
  } {
    if (TT[i] == 0){
    count += 1;
    }
    else{
    }
  } if (TT[i] == 0){
    count += 1;
    }
    else{
    } TT[i] == 0 TT[i] TT i 0 {
    count += 1;
    } count += 1 count 1 {
    } System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.Scanner;
import java.util.ArrayList;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
 
int N = scan.nextInt();
int K = scan.nextInt();
int TT[] = new int[N];
int i, j, e, d;
int count = 0;
  for (i = 0; i < K; i++){
    d = scan.nextInt();
      for(j = 0; j < d; j++){
        e = scan.nextInt();
        TT[e-1] = 1;
        }
   }

  for (i = 0; i < N; i++){
    if (TT[i] == 0){
    count += 1;
    }
    else{
    }
  }
  System.out.println(count);
 }
}