import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int sunu[] = new int[N];
    for(int i=0;i<K;i++){
      int d =  sc.nextInt();
      // System.out.println(i+"iii"); 
      for(int j=0; j<d; j++){
        // System.out.println(j+"ssd");  
        sunu[sc.nextInt()-1]++;
        // System.out.println(j+"aaa"); 
      }
    }
    int count = 0;
    for(int i=0;i<N;i++){
      if(sunu[i]==0){
        count++;
      }
    }
    System.out.println(count);  
  }
}


 import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int sunu[] = new int[N];
    for(int i=0;i<K;i++){
      int d =  sc.nextInt();
      // System.out.println(i+"iii"); 
      for(int j=0; j<d; j++){
        // System.out.println(j+"ssd");  
        sunu[sc.nextInt()-1]++;
        // System.out.println(j+"aaa"); 
      }
    }
    int count = 0;
    for(int i=0;i<N;i++){
      if(sunu[i]==0){
        count++;
      }
    }
    System.out.println(count);  
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int sunu[] = new int[N];
    for(int i=0;i<K;i++){
      int d =  sc.nextInt();
      // System.out.println(i+"iii"); 
      for(int j=0; j<d; j++){
        // System.out.println(j+"ssd");  
        sunu[sc.nextInt()-1]++;
        // System.out.println(j+"aaa"); 
      }
    }
    int count = 0;
    for(int i=0;i<N;i++){
      if(sunu[i]==0){
        count++;
      }
    }
    System.out.println(count);  
  } main {
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int sunu[] = new int[N];
    for(int i=0;i<K;i++){
      int d =  sc.nextInt();
      // System.out.println(i+"iii"); 
      for(int j=0; j<d; j++){
        // System.out.println(j+"ssd");  
        sunu[sc.nextInt()-1]++;
        // System.out.println(j+"aaa"); 
      }
    }
    int count = 0;
    for(int i=0;i<N;i++){
      if(sunu[i]==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 sunu[] = new int[N]; sunu new int[N] N for(int i=0;i<K;i++){
      int d =  sc.nextInt();
      // System.out.println(i+"iii"); 
      for(int j=0; j<d; j++){
        // System.out.println(j+"ssd");  
        sunu[sc.nextInt()-1]++;
        // System.out.println(j+"aaa"); 
      }
    } int i=0; int i=0; i 0 i<K i K i++ i++ i {
      int d =  sc.nextInt();
      // System.out.println(i+"iii"); 
      for(int j=0; j<d; j++){
        // System.out.println(j+"ssd");  
        sunu[sc.nextInt()-1]++;
        // System.out.println(j+"aaa"); 
      }
    } {
      int d =  sc.nextInt();
      // System.out.println(i+"iii"); 
      for(int j=0; j<d; j++){
        // System.out.println(j+"ssd");  
        sunu[sc.nextInt()-1]++;
        // System.out.println(j+"aaa"); 
      }
    } int d =  sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int j=0; j<d; j++){
        // System.out.println(j+"ssd");  
        sunu[sc.nextInt()-1]++;
        // System.out.println(j+"aaa"); 
      } int j=0; int j=0; j 0 j<d j d j++ j++ j {
        // System.out.println(j+"ssd");  
        sunu[sc.nextInt()-1]++;
        // System.out.println(j+"aaa"); 
      } {
        // System.out.println(j+"ssd");  
        sunu[sc.nextInt()-1]++;
        // System.out.println(j+"aaa"); 
      } sunu[sc.nextInt()-1]++ sunu[sc.nextInt()-1] sunu sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 int count = 0; count 0 for(int i=0;i<N;i++){
      if(sunu[i]==0){
        count++;
      }
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      if(sunu[i]==0){
        count++;
      }
    } {
      if(sunu[i]==0){
        count++;
      }
    } if(sunu[i]==0){
        count++;
      } sunu[i]==0 sunu[i] sunu i 0 {
        count++;
      } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int sunu[] = new int[N];
    for(int i=0;i<K;i++){
      int d =  sc.nextInt();
      // System.out.println(i+"iii"); 
      for(int j=0; j<d; j++){
        // System.out.println(j+"ssd");  
        sunu[sc.nextInt()-1]++;
        // System.out.println(j+"aaa"); 
      }
    }
    int count = 0;
    for(int i=0;i<N;i++){
      if(sunu[i]==0){
        count++;
      }
    }
    System.out.println(count);  
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int sunu[] = new int[N];
    for(int i=0;i<K;i++){
      int d =  sc.nextInt();
      // System.out.println(i+"iii"); 
      for(int j=0; j<d; j++){
        // System.out.println(j+"ssd");  
        sunu[sc.nextInt()-1]++;
        // System.out.println(j+"aaa"); 
      }
    }
    int count = 0;
    for(int i=0;i<N;i++){
      if(sunu[i]==0){
        count++;
      }
    }
    System.out.println(count);  
  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int N = sc.nextInt();
    int K = sc.nextInt();
    
    int sunu[] = new int[N];
    for(int i=0;i<K;i++){
      int d =  sc.nextInt();
      // System.out.println(i+"iii"); 
      for(int j=0; j<d; j++){
        // System.out.println(j+"ssd");  
        sunu[sc.nextInt()-1]++;
        // System.out.println(j+"aaa"); 
      }
    }
    int count = 0;
    for(int i=0;i<N;i++){
      if(sunu[i]==0){
        count++;
      }
    }
    System.out.println(count);  
  }
}



