import 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[] l = new int[N];
    int ans = 0;
    for (int i = 0; i < K; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
          int a = sc.nextInt();
          l[a-1]++;
      }
    }
    
    for (int k = 0; k < N; k++) {
      if (l[k] == 0) {
        ans += 1;
      }
    }
    System.out.println(ans);
  }
}   import java.util.*; util.* java public class Main {
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    int[] l = new int[N];
    int ans = 0;
    for (int i = 0; i < K; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
          int a = sc.nextInt();
          l[a-1]++;
      }
    }
    
    for (int k = 0; k < N; k++) {
      if (l[k] == 0) {
        ans += 1;
      }
    }
    System.out.println(ans);
  }
} Main public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    int[] l = new int[N];
    int ans = 0;
    for (int i = 0; i < K; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
          int a = sc.nextInt();
          l[a-1]++;
      }
    }
    
    for (int k = 0; k < N; k++) {
      if (l[k] == 0) {
        ans += 1;
      }
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    int[] l = new int[N];
    int ans = 0;
    for (int i = 0; i < K; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
          int a = sc.nextInt();
          l[a-1]++;
      }
    }
    
    for (int k = 0; k < N; k++) {
      if (l[k] == 0) {
        ans += 1;
      }
    }
    System.out.println(ans);
  } 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[] l = new int[N]; l new int[N] N int ans = 0; ans 0 for (int i = 0; i < K; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
          int a = sc.nextInt();
          l[a-1]++;
      }
    } int i = 0; int i = 0; i 0 i < K i K i++ i++ i {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
          int a = sc.nextInt();
          l[a-1]++;
      }
    } {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
          int a = sc.nextInt();
          l[a-1]++;
      }
    } int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for (int j = 0; j < d; j++) {
          int a = sc.nextInt();
          l[a-1]++;
      } int j = 0; int j = 0; j 0 j < d j d j++ j++ j {
          int a = sc.nextInt();
          l[a-1]++;
      } {
          int a = sc.nextInt();
          l[a-1]++;
      } int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc l[a-1]++ l[a-1] l a-1 a 1 for (int k = 0; k < N; k++) {
      if (l[k] == 0) {
        ans += 1;
      }
    } int k = 0; int k = 0; k 0 k < N k N k++ k++ k {
      if (l[k] == 0) {
        ans += 1;
      }
    } {
      if (l[k] == 0) {
        ans += 1;
      }
    } if (l[k] == 0) {
        ans += 1;
      } l[k] == 0 l[k] l k 0 {
        ans += 1;
      } ans += 1 ans 1 System.out.println(ans) System.out.println System.out System System.out ans 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[] l = new int[N];
    int ans = 0;
    for (int i = 0; i < K; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
          int a = sc.nextInt();
          l[a-1]++;
      }
    }
    
    for (int k = 0; k < N; k++) {
      if (l[k] == 0) {
        ans += 1;
      }
    }
    System.out.println(ans);
  }
} public class Main {
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    int[] l = new int[N];
    int ans = 0;
    for (int i = 0; i < K; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
          int a = sc.nextInt();
          l[a-1]++;
      }
    }
    
    for (int k = 0; k < N; k++) {
      if (l[k] == 0) {
        ans += 1;
      }
    }
    System.out.println(ans);
  }
} Main
import 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[] l = new int[N];
    int ans = 0;
    for (int i = 0; i < K; i++) {
      int d = sc.nextInt();
      for (int j = 0; j < d; j++) {
          int a = sc.nextInt();
          l[a-1]++;
      }
    }
    
    for (int k = 0; k < N; k++) {
      if (l[k] == 0) {
        ans += 1;
      }
    }
    System.out.println(ans);
  }
}  