import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    
    int N = scan.nextInt();
    int K = scan.nextInt();
    
    int sunuke[] = new int[N];
    int num;
    
    for(int k = 0; k < K; k++){
      num = scan.nextInt();
      for(int n = 0; n < num; n++){
        if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        }
      }
    }
    
    System.out.println(N);
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    
    int N = scan.nextInt();
    int K = scan.nextInt();
    
    int sunuke[] = new int[N];
    int num;
    
    for(int k = 0; k < K; k++){
      num = scan.nextInt();
      for(int n = 0; n < num; n++){
        if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        }
      }
    }
    
    System.out.println(N);
  }
} Main public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    
    int N = scan.nextInt();
    int K = scan.nextInt();
    
    int sunuke[] = new int[N];
    int num;
    
    for(int k = 0; k < K; k++){
      num = scan.nextInt();
      for(int n = 0; n < num; n++){
        if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        }
      }
    }
    
    System.out.println(N);
  } main {
    Scanner scan = new Scanner(System.in);
    
    int N = scan.nextInt();
    int K = scan.nextInt();
    
    int sunuke[] = new int[N];
    int num;
    
    for(int k = 0; k < K; k++){
      num = scan.nextInt();
      for(int n = 0; n < num; n++){
        if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        }
      }
    }
    
    System.out.println(N);
  } 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 sunuke[] = new int[N]; sunuke new int[N] N int num; num for(int k = 0; k < K; k++){
      num = scan.nextInt();
      for(int n = 0; n < num; n++){
        if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        }
      }
    } int k = 0; int k = 0; k 0 k < K k K k++ k++ k {
      num = scan.nextInt();
      for(int n = 0; n < num; n++){
        if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        }
      }
    } {
      num = scan.nextInt();
      for(int n = 0; n < num; n++){
        if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        }
      }
    } num = scan.nextInt() num scan.nextInt() scan.nextInt scan for(int n = 0; n < num; n++){
        if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        }
      } int n = 0; int n = 0; n 0 n < num n num n++ n++ n {
        if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        }
      } {
        if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        }
      } if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        } sunuke[scan.nextInt()-1]++ == 0 sunuke[scan.nextInt()-1]++ sunuke[scan.nextInt()-1] sunuke scan.nextInt()-1 scan.nextInt() scan.nextInt scan 1 0 {
          N--;
        } N-- N System.out.println(N) System.out.println System.out System System.out N String args[] args public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    
    int N = scan.nextInt();
    int K = scan.nextInt();
    
    int sunuke[] = new int[N];
    int num;
    
    for(int k = 0; k < K; k++){
      num = scan.nextInt();
      for(int n = 0; n < num; n++){
        if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        }
      }
    }
    
    System.out.println(N);
  }
} public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    
    int N = scan.nextInt();
    int K = scan.nextInt();
    
    int sunuke[] = new int[N];
    int num;
    
    for(int k = 0; k < K; k++){
      num = scan.nextInt();
      for(int n = 0; n < num; n++){
        if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        }
      }
    }
    
    System.out.println(N);
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    
    int N = scan.nextInt();
    int K = scan.nextInt();
    
    int sunuke[] = new int[N];
    int num;
    
    for(int k = 0; k < K; k++){
      num = scan.nextInt();
      for(int n = 0; n < num; n++){
        if(sunuke[scan.nextInt()-1]++ == 0){
          N--;
        }
      }
    }
    
    System.out.println(N);
  }
}