import java.util.*;

public class Main{
  static public void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int[] sunuke = new int[N];
    for(int i=0; i<N; i++){
      sunuke[i] = 0;
    }
    
    int di, A;
    for(int j=0; j<K; j++){
      di = sc.nextInt();
      for(int k=0; k<di; k++){
        A = sc.nextInt();
        if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        }
      }
    }
    
    int count = 0;
    for(int h=0; h<N; h++){
      if(sunuke[h] == 0){
        count++;
      }
    }
    
    System.out.println(count);
    
  }
} import java.util.*; util.* java public class Main{
  static public void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int[] sunuke = new int[N];
    for(int i=0; i<N; i++){
      sunuke[i] = 0;
    }
    
    int di, A;
    for(int j=0; j<K; j++){
      di = sc.nextInt();
      for(int k=0; k<di; k++){
        A = sc.nextInt();
        if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        }
      }
    }
    
    int count = 0;
    for(int h=0; h<N; h++){
      if(sunuke[h] == 0){
        count++;
      }
    }
    
    System.out.println(count);
    
  }
} Main static public void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int[] sunuke = new int[N];
    for(int i=0; i<N; i++){
      sunuke[i] = 0;
    }
    
    int di, A;
    for(int j=0; j<K; j++){
      di = sc.nextInt();
      for(int k=0; k<di; k++){
        A = sc.nextInt();
        if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        }
      }
    }
    
    int count = 0;
    for(int h=0; h<N; h++){
      if(sunuke[h] == 0){
        count++;
      }
    }
    
    System.out.println(count);
    
  } main {
    
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int[] sunuke = new int[N];
    for(int i=0; i<N; i++){
      sunuke[i] = 0;
    }
    
    int di, A;
    for(int j=0; j<K; j++){
      di = sc.nextInt();
      for(int k=0; k<di; k++){
        A = sc.nextInt();
        if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        }
      }
    }
    
    int count = 0;
    for(int h=0; h<N; h++){
      if(sunuke[h] == 0){
        count++;
      }
    }
    
    System.out.println(count);
    
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc int[] sunuke = new int[N]; sunuke new int[N] N for(int i=0; i<N; i++){
      sunuke[i] = 0;
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      sunuke[i] = 0;
    } {
      sunuke[i] = 0;
    } sunuke[i] = 0 sunuke[i] sunuke i 0 int di di A; A for(int j=0; j<K; j++){
      di = sc.nextInt();
      for(int k=0; k<di; k++){
        A = sc.nextInt();
        if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        }
      }
    } int j=0; int j=0; j 0 j<K j K j++ j++ j {
      di = sc.nextInt();
      for(int k=0; k<di; k++){
        A = sc.nextInt();
        if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        }
      }
    } {
      di = sc.nextInt();
      for(int k=0; k<di; k++){
        A = sc.nextInt();
        if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        }
      }
    } di = sc.nextInt() di sc.nextInt() sc.nextInt sc for(int k=0; k<di; k++){
        A = sc.nextInt();
        if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        }
      } int k=0; int k=0; k 0 k<di k di k++ k++ k {
        A = sc.nextInt();
        if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        }
      } {
        A = sc.nextInt();
        if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        }
      } A = sc.nextInt() A sc.nextInt() sc.nextInt sc if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        } sunuke[A-1] == 0 sunuke[A-1] sunuke A-1 A 1 0 {
          sunuke[A-1]++;
        } sunuke[A-1]++ sunuke[A-1] sunuke A-1 A 1 int count = 0; count 0 for(int h=0; h<N; h++){
      if(sunuke[h] == 0){
        count++;
      }
    } int h=0; int h=0; h 0 h<N h N h++ h++ h {
      if(sunuke[h] == 0){
        count++;
      }
    } {
      if(sunuke[h] == 0){
        count++;
      }
    } if(sunuke[h] == 0){
        count++;
      } sunuke[h] == 0 sunuke[h] sunuke h 0 {
        count++;
      } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{
  static public void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int[] sunuke = new int[N];
    for(int i=0; i<N; i++){
      sunuke[i] = 0;
    }
    
    int di, A;
    for(int j=0; j<K; j++){
      di = sc.nextInt();
      for(int k=0; k<di; k++){
        A = sc.nextInt();
        if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        }
      }
    }
    
    int count = 0;
    for(int h=0; h<N; h++){
      if(sunuke[h] == 0){
        count++;
      }
    }
    
    System.out.println(count);
    
  }
} public class Main{
  static public void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int[] sunuke = new int[N];
    for(int i=0; i<N; i++){
      sunuke[i] = 0;
    }
    
    int di, A;
    for(int j=0; j<K; j++){
      di = sc.nextInt();
      for(int k=0; k<di; k++){
        A = sc.nextInt();
        if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        }
      }
    }
    
    int count = 0;
    for(int h=0; h<N; h++){
      if(sunuke[h] == 0){
        count++;
      }
    }
    
    System.out.println(count);
    
  }
} Main
import java.util.*;

public class Main{
  static public void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int[] sunuke = new int[N];
    for(int i=0; i<N; i++){
      sunuke[i] = 0;
    }
    
    int di, A;
    for(int j=0; j<K; j++){
      di = sc.nextInt();
      for(int k=0; k<di; k++){
        A = sc.nextInt();
        if(sunuke[A-1] == 0){
          sunuke[A-1]++;
        }
      }
    }
    
    int count = 0;
    for(int h=0; h<N; h++){
      if(sunuke[h] == 0){
        count++;
      }
    }
    
    System.out.println(count);
    
  }
}